Skip to content

Instantly share code, notes, and snippets.

@NobukazuHanada
Created February 7, 2017 04:42
Show Gist options
  • Save NobukazuHanada/dfb486fce84477a356baf111ca9c91b9 to your computer and use it in GitHub Desktop.
Save NobukazuHanada/dfb486fce84477a356baf111ca9c91b9 to your computer and use it in GitHub Desktop.
class Symbol
def method_missing(name, *args)
self.to_s.method(name).call(*args)
end
end
puts :hello.start_with "he"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment