Method: RackMailbox#method_missing

Defined in:
lib/racked.rb

#method_missing(method, *args) ⇒ Object



19
20
21
22
23
24
25
26
27
28
# File 'lib/racked.rb', line 19

def method_missing(method, *args)
  #x = name.to_s.camelize(:lower)
  x = method.to_s
  #return @attributes[access_key] if(@attributes.keys.include?(access_key))
  if(@attributes.keys.include?(x))
    @attributes[x]
  else
    super
  end
end