rubyx/lib/ruby/block_statement.rb

17 lines
307 B
Ruby
Raw Normal View History

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