Class: Mongoid::Orderable::Generators::Base

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

Direct Known Subclasses

Helpers, Listable, Movable, Position, Scope

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#klassObject (readonly)

Returns the value of attribute klass.



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

def klass
  @klass
end