Class: Duby::AST::JRubyAst::ArrayNode

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

Instance Method Summary collapse

Instance Method Details

#transform(transformer, parent) ⇒ Object



309
310
311
312
313
# File 'lib/duby/transform.rb', line 309

def transform(transformer, parent)
  Array.new(parent, position) do |array|
    child_nodes.map {|child| transformer.transform(child, array)}
  end
end