Class: Mongoid::Orderable::Handlers::Base
- Inherits:
-
Object
- Object
- Mongoid::Orderable::Handlers::Base
- Defined in:
- lib/mongoid/orderable/handlers/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#doc ⇒ Object
readonly
Returns the value of attribute doc.
Instance Method Summary collapse
-
#initialize(doc) ⇒ Base
constructor
A new instance of Base.
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
#doc ⇒ Object (readonly)
Returns the value of attribute doc.
7 8 9 |
# File 'lib/mongoid/orderable/handlers/base.rb', line 7 def doc @doc end |