Skip to content

Instantly share code, notes, and snippets.

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