Skip to content

Instantly share code, notes, and snippets.

@jsl
Created January 11, 2013 21:14
Show Gist options
  • Save jsl/4514006 to your computer and use it in GitHub Desktop.
Save jsl/4514006 to your computer and use it in GitHub Desktop.
1.9.3-p125 :036 > p = DotHash::Properties.new({})
=> #<DotHash::Properties:0x007f8cf408a308 @hash={}>
1.9.3-p125 :037 > p = DotHash::Properties.new({:foo => :bar})
=> #<DotHash::Properties:0x007f8cf4067740 @hash={:foo=>:bar}>
1.9.3-p125 :038 > p.respond_to?(:foo)
=> false
1.9.3-p125 :039 > p.foo
=> :bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment