Class: Kaminari::Logarithmic::SeqBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/kaminari/logarithmic/seq_builder.rb

Constant Summary collapse

DEFAULT_STRATEGY =
:even

Instance Method Summary collapse

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 = {})
  @options = options
  build_strategy(start, finish)
end

Instance Method Details

#buildObject



11
12
13
# File 'lib/kaminari/logarithmic/seq_builder.rb', line 11

def build
  @strategy.build
end