change the ruby block to be like the ruby block

ie modelled like the ast outputs it
This commit is contained in:
Torsten Ruger
2018-07-19 16:22:44 +03:00
parent 61225c2f20
commit f728725b1a
3 changed files with 15 additions and 19 deletions

View File

@@ -1,12 +1,11 @@
module Vool
module Ruby
class BlockStatement < Statement
attr_reader :args , :body , :clazz
attr_reader :send , :args , :body
def initialize( args , body , something_really_else)
@args , @body = args , body
def initialize( send , args , body )
@send , @args , @body = send , args , body
raise "no bod" unless @body
@clazz = clazz
end
def to_vool