Method: PoolParty::Schema#method_missing
- Defined in:
- lib/poolparty/schema.rb
#method_missing(sym, *args, &block) ⇒ Object
41 42 43 44 45 46 47 48 49 |
# File 'lib/poolparty/schema.rb', line 41 def method_missing(sym, *args, &block) if @hsh.has_key?(sym.to_sym) @hsh.fetch(sym) elsif @hsh.has_key?(sym.to_s) @hsh.fetch(sym.to_s) else @hsh.send(sym, *args, &block) end end |