Module: Clack::Core::ScrollHelper Deprecated
- Defined in:
- lib/clack/core/scroll_helper.rb
Overview
Deprecated.
Use OptionsHelper directly. ScrollHelper is now an alias for backwards compatibility.
Class Method Summary collapse
Instance Method Summary collapse
-
#scroll_items ⇒ Object
Alias for navigable_items (old name from when ScrollHelper was separate).
-
#visible_items ⇒ Object
Alias for visible_options (old name from when ScrollHelper was separate).
Class Method Details
.included(base) ⇒ Object
8 9 10 |
# File 'lib/clack/core/scroll_helper.rb', line 8 def self.included(base) base.include(OptionsHelper) unless base.ancestors.include?(OptionsHelper) end |
Instance Method Details
#scroll_items ⇒ Object
Alias for navigable_items (old name from when ScrollHelper was separate)
18 19 20 |
# File 'lib/clack/core/scroll_helper.rb', line 18 def scroll_items navigable_items end |
#visible_items ⇒ Object
Alias for visible_options (old name from when ScrollHelper was separate)
13 14 15 |
# File 'lib/clack/core/scroll_helper.rb', line 13 def visible_items end |