Method: DocumentHash::Core#method_missing

Defined in:
lib/document_hash/core.rb

#method_missing(method, *args) ⇒ Object



33
34
35
36
37
38
39
# File 'lib/document_hash/core.rb', line 33

def method_missing method, *args
  if method =~ /^(.*)=$/
    self.__send__(:[]=, method[0..-2], args.pop)
  else
    self.__send__(:[], method) || DocumentHash::Nil.new(self, [method])
  end
end