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, ={}, &block) return super() unless name # allow Object.hash. [:hash] = true property(name, , &block) end |