Class: Mongoid::Orderable::Handlers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/mongoid/orderable/handlers/base.rb

Direct Known Subclasses

Document

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(doc) ⇒ Base

Returns a new instance of Base.



9
10
11
12
# File 'lib/mongoid/orderable/handlers/base.rb', line 9

def initialize(doc)
  @doc = doc
  reset_new_record
end

Instance Attribute Details

#docObject (readonly)

Returns the value of attribute doc.



7
8
9
# File 'lib/mongoid/orderable/handlers/base.rb', line 7

def doc
  @doc
end