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



248
249
250
251
252
# File 'lib/duby/transform.rb', line 248

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