Skip to content

Instantly share code, notes, and snippets.

@bradediger
Created May 9, 2009 19:37
Show Gist options
  • Save bradediger/109374 to your computer and use it in GitHub Desktop.
Save bradediger/109374 to your computer and use it in GitHub Desktop.
class FancyString < String
attr_accessor :bling
end
blingful_string = FancyString.new
blingful_string.bling = true
h = { blingful_string => 1 }
puts h.keys.first.bling.inspect # => nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment