Redoing ruby block conversion
Since the block is actually a constant, it does not need assignment or special hoisting Just use the send and stick the lambda in as last arg
This commit is contained in:
@ -76,7 +76,6 @@ module Ruby
|
||||
end
|
||||
|
||||
def on_block(block_node)
|
||||
puts block_node.to_s
|
||||
sendd = process(block_node.children[0])
|
||||
args = process(block_node.children[1])
|
||||
body = process(block_node.children[2])
|
||||
|
Reference in New Issue
Block a user