-
-
Save wycats/857090 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def process_call(line, receiver, name, arguments) | |
# if a form is recognized, the transform calls eg process_special_send() which | |
# creates and returns a node, and process_transforms returns true to abort normal | |
# processing. Normal processing creates a Send or SendWithArguments node. | |
return if process_transforms(line, receiver, name, arguments) | |
if arguments | |
AST::SendWithArguments.new line, receiver, name, arguments | |
else | |
AST::Send.new line, receiver, name | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment