Skip to content

Instantly share code, notes, and snippets.

@djburdick
Created February 25, 2013 03:57
Show Gist options
  • Save djburdick/5027582 to your computer and use it in GitHub Desktop.
Save djburdick/5027582 to your computer and use it in GitHub Desktop.
ruby variable method names (send). #ruby
Object.send(var)
request = gets
if ticket.respond_to?(request)
puts ticket.send(request)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment