Class: Duby::AST::JRubyAst::IterNode

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

Instance Method Summary collapse

Instance Method Details

#transform(transformer, parent) ⇒ Object



1060
1061
1062
1063
1064
1065
1066
1067
# File 'lib/duby/transform.rb', line 1060

def transform(transformer, parent)
  Block.new(parent, position) do |block|
    [
      transformer.transform(var_node, block),
      transformer.transform(body_node, block)
    ]
  end
end