Skip to content

Instantly share code, notes, and snippets.

@keithrbennett
Last active August 29, 2015 14:05
Show Gist options
  • Save keithrbennett/0551fbe495997335d492 to your computer and use it in GitHub Desktop.
Save keithrbennett/0551fbe495997335d492 to your computer and use it in GitHub Desktop.
2.1.2 :001 > require 'dot_notation'
=> true
2.1.2 :002 > h = { a: { b: 3 }}
=> {:a=>{:b=>3}}
2.1.2 :004 > DotNotation.dot(h, 'a.b')
NoMethodError: undefined method `dot' for DotNotation:Module
from (irb):4
from /Users/kbennett/.rvm/rubies/ruby-2.1.2/bin/irb:11:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment