Skip to content

Instantly share code, notes, and snippets.

@shepmaster
Created October 3, 2012 21:41
Show Gist options
  • Save shepmaster/3830053 to your computer and use it in GitHub Desktop.
Save shepmaster/3830053 to your computer and use it in GitHub Desktop.
def whatever(message)
if message.respond_to? :to_expectation_message
message = message.to_expectation_message
end
message = message.to_str
# ... code with message
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment