Skip to content

Instantly share code, notes, and snippets.

@alexvollmer
Created January 6, 2009 02:01
Show Gist options
  • Save alexvollmer/43626 to your computer and use it in GitHub Desktop.
Save alexvollmer/43626 to your computer and use it in GitHub Desktop.
foo = { :alpha => "one", :bravo => "two" }
class << foo
def howdy!
"howdy!"
end
end
foo.howdy! #=> "howdy!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment