Class: SimpleNavigation::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/simple-navigation/core/item.rb

Instance Method Summary collapse

Instance Method Details

#selected_with_forgetfulness?Boolean

We want simple-navigation to be forgetful about @selected.

Returns:

  • (Boolean)


4
5
6
7
8
# File 'lib/simple-navigation/core/item.rb', line 4

def selected_with_forgetfulness?
  is_selected = selected_without_forgetfulness?
  @selected = nil
  is_selected
end