Class: Navigatrix::Configuration::BasicConfig
- Inherits:
-
Struct
- Object
- Struct
- Navigatrix::Configuration::BasicConfig
- Defined in:
- lib/navigatrix/configuration.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
- #active_class ⇒ Object
- #active_states ⇒ Object
- #children ⇒ Object
- #html_attributes ⇒ Object
- #inactive_class ⇒ Object
- #render? ⇒ Boolean
- #unlinked_states ⇒ Object
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path
10 11 12 |
# File 'lib/navigatrix/configuration.rb', line 10 def path @path end |
Instance Method Details
#active_class ⇒ Object
27 28 29 |
# File 'lib/navigatrix/configuration.rb', line 27 def active_class nil end |
#active_states ⇒ Object
11 12 13 |
# File 'lib/navigatrix/configuration.rb', line 11 def active_states [{path: path}] end |
#children ⇒ Object
19 20 21 |
# File 'lib/navigatrix/configuration.rb', line 19 def children {} end |
#html_attributes ⇒ Object
23 24 25 |
# File 'lib/navigatrix/configuration.rb', line 23 def html_attributes {} end |
#inactive_class ⇒ Object
31 32 33 |
# File 'lib/navigatrix/configuration.rb', line 31 def inactive_class nil end |
#render? ⇒ Boolean
35 36 37 |
# File 'lib/navigatrix/configuration.rb', line 35 def render? true end |
#unlinked_states ⇒ Object
15 16 17 |
# File 'lib/navigatrix/configuration.rb', line 15 def unlinked_states active_states end |