Created
July 9, 2012 19:59
-
-
Save yuki24/3078543 to your computer and use it in GitHub Desktop.
Which is wrong, me or Hashie?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'hashie' | |
class Foo < Hashie::Mash | |
def initialize(arg, options = {}) | |
options[:key] | |
super(options) | |
end | |
end | |
Foo.new(1).dup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment