Method: Representable::ClassMethods::Declarations#hash

Defined in:
lib/representable.rb

#hash(name = nil, options = {}, &block) ⇒ Object



112
113
114
115
116
117
# File 'lib/representable.rb', line 112

def hash(name=nil, options={}, &block)
  return super() unless name  # allow Object.hash.

  options[:hash] = true
  property(name, options, &block)
end