Skip to content

Instantly share code, notes, and snippets.

View hanui's full-sized avatar

Hanui Amy Choi hanui

  • San Francisco, CA
View GitHub Profile
class Bob
def reply_to(statement)
public_send("reply_to_#{statement.class}".downcase.to_sym)
rescue NoMethodError
default_reply
end
def reply_to_silence
"Fine. Be that way!"
end