Class: Meteor::Hook::Looper

Inherits:
Object
  • Object
show all
Defined in:
lib/meteor.rb

Overview

ループフッククラス

Instance Method Summary collapse

Constructor Details

#initializeLooper

イニシャライザ



887
888
# File 'lib/meteor.rb', line 887

def initialize
end

Instance Method Details

#do_action(elm, list) ⇒ Object



890
891
892
893
894
895
896
897
898
899
900
901
902
903
# File 'lib/meteor.rb', line 890

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