Method: OrientSupport::Hash#initialize
- Defined in:
- lib/support/orient.rb
#initialize(modelinstance, args) ⇒ Hash
Returns a new instance of Hash.
221 222 223 224 225 226 227 |
# File 'lib/support/orient.rb', line 221 def initialize modelinstance, args super() @orient = modelinstance self.merge! args @name = block_given? ? yield : modelinstance.attributes.key(self) self end |