Class: AhoyCaptain::PreviousNextComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- AhoyCaptain::PreviousNextComponent
- Defined in:
- app/components/ahoy_captain/previous_next_component.rb
Instance Method Summary collapse
-
#initialize(range) ⇒ PreviousNextComponent
constructor
A new instance of PreviousNextComponent.
- #render? ⇒ Boolean
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
7 8 9 |
# File 'app/components/ahoy_captain/previous_next_component.rb', line 7 def render? false end |