rubyx/lib/ruby/block_statement.rb
Torsten Ruger f728725b1a change the ruby block to be like the ruby block
ie modelled like the ast outputs it
2018-07-19 16:22:44 +03:00

17 lines
307 B
Ruby

module Ruby
class BlockStatement < Statement
attr_reader :send , :args , :body
def initialize( send , args , body )
@send , @args , @body = send , args , body
raise "no bod" unless @body
end
def to_vool
BlockStatement.new( @args , @body.normalize)
end
end
end