Fixing ruby send with arguments
When send has complex args, mostly more sends, we hoist those out and pass created temporary variables
This commit is contained in:
@ -20,13 +20,16 @@ module Ruby
|
||||
def length
|
||||
@statements.length
|
||||
end
|
||||
def shift
|
||||
@statements.shift
|
||||
end
|
||||
def [](i)
|
||||
@statements[i]
|
||||
end
|
||||
def <<(o)
|
||||
@statements << o
|
||||
self
|
||||
end
|
||||
end
|
||||
def to_vool
|
||||
if( single? )
|
||||
first.to_vool
|
||||
|
Reference in New Issue
Block a user