Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/datafiniti/deep_struct.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object



3
4
5
6
# File 'lib/datafiniti/deep_struct.rb', line 3

def method_missing(name, *args, &block)
  self[name.to_s]
  # profile.has_key?(name.to_s) ? profile.send(name.to_sym) : super
end