Class: Duby::AST::JRubyAst::BlockNode

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

Instance Method Summary collapse

Instance Method Details

#transform(transformer, parent) ⇒ Object



286
287
288
289
290
# File 'lib/duby/transform.rb', line 286

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