Class: Meteor::Hook::Looper
- Inherits:
-
Object
- Object
- Meteor::Hook::Looper
- Defined in:
- lib/meteor.rb
Overview
ループフッククラス
Instance Method Summary collapse
- #do_action(elm, list) ⇒ Object
-
#initialize ⇒ Looper
constructor
イニシャライザ.
Constructor Details
Instance Method Details
#do_action(elm, list) ⇒ Object
834 835 836 837 838 839 840 841 842 843 844 845 846 847 |
# File 'lib/meteor.rb', line 834 def do_action(elm,list) #内容あり要素の場合 if elm.empty then elm2 = elm.child(elm) init(elm2) list.each do |item| if !elm2.mono then elm2.parser.root_element.document = elm.mixed_content end execute(elm2, item) elm2.flush end end end |