f728725b1a
ie modelled like the ast outputs it
17 lines
307 B
Ruby
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
|