Class: Mongoid::Orderable::Generators::Base
- Inherits:
-
Object
- Object
- Mongoid::Orderable::Generators::Base
- Defined in:
- lib/mongoid/orderable/generators/base.rb
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Instance Method Summary collapse
-
#initialize(klass) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(klass) ⇒ Base
Returns a new instance of Base.
9 10 11 |
# File 'lib/mongoid/orderable/generators/base.rb', line 9 def initialize(klass) @klass = klass end |
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
7 8 9 |
# File 'lib/mongoid/orderable/generators/base.rb', line 7 def klass @klass end |