Module: Receiver::ActsAsHash::ClassMethods

Defined in:
lib/gorillib/receiver/acts_as_hash.rb

Instance Method Summary collapse

Instance Method Details

#keysObject

By default, the hashlike methods iterate over the receiver attributes. If you want to filter our add to the keys list, override this method

Examples:

def self.keys
  super + [:firstname, :lastname] - [:fullname]
end


175
176
177
# File 'lib/gorillib/receiver/acts_as_hash.rb', line 175

def keys
  receiver_attr_names
end