Skip to content

Instantly share code, notes, and snippets.

@wycats
Forked from brixen/gist:857088
Created March 6, 2011 06:58
Show Gist options
  • Save wycats/857090 to your computer and use it in GitHub Desktop.
Save wycats/857090 to your computer and use it in GitHub Desktop.
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