Class: AhoyCaptain::PreviousNextComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/ahoy_captain/previous_next_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(range) ⇒ PreviousNextComponent

Returns a new instance of PreviousNextComponent.



3
4
5
# File 'app/components/ahoy_captain/previous_next_component.rb', line 3

def initialize(range)
  @range = range
end

Instance Method Details

#render?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'app/components/ahoy_captain/previous_next_component.rb', line 7

def render?
  false
end