Method: HipsterHash#method_missing
- Defined in:
- lib/hipster_hash.rb
#method_missing(sym, *args, &block) ⇒ Object (protected)
42 43 44 45 46 47 |
# File 'lib/hipster_hash.rb', line 42 def method_missing(sym, *args, &block) return super if block_given? return store(sym[0...-1], args.first) if sym[-1] == '=' and args.length == 1 return fetch(sym) if args.empty? and key?(sym) super end |