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

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_itemsObject

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_itemsObject

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
  visible_options
end