Class: Kaminari::Logarithmic::SeqBuilder
- Inherits:
-
Object
- Object
- Kaminari::Logarithmic::SeqBuilder
- Defined in:
- lib/kaminari/logarithmic/seq_builder.rb
Constant Summary collapse
- DEFAULT_STRATEGY =
:even
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(start, finish, options = {}) ⇒ SeqBuilder
constructor
A new instance of SeqBuilder.
Constructor Details
#initialize(start, finish, options = {}) ⇒ SeqBuilder
Returns a new instance of SeqBuilder.
6 7 8 9 |
# File 'lib/kaminari/logarithmic/seq_builder.rb', line 6 def initialize(start, finish, = {}) @options = build_strategy(start, finish) end |
Instance Method Details
#build ⇒ Object
11 12 13 |
# File 'lib/kaminari/logarithmic/seq_builder.rb', line 11 def build @strategy.build end |