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
9 10 11 |
# File 'lib/navigatrix/configuration.rb', line 9 def path @path end |
Instance Method Details
#active_class ⇒ Object
26 27 28 |
# File 'lib/navigatrix/configuration.rb', line 26 def active_class nil end |
#active_states ⇒ Object
10 11 12 |
# File 'lib/navigatrix/configuration.rb', line 10 def active_states [{path: path}] end |
#children ⇒ Object
18 19 20 |
# File 'lib/navigatrix/configuration.rb', line 18 def children {} end |
#html_attributes ⇒ Object
22 23 24 |
# File 'lib/navigatrix/configuration.rb', line 22 def html_attributes {} end |
#inactive_class ⇒ Object
30 31 32 |
# File 'lib/navigatrix/configuration.rb', line 30 def inactive_class nil end |
#render? ⇒ Boolean
34 35 36 |
# File 'lib/navigatrix/configuration.rb', line 34 def render? true end |
#unlinked_states ⇒ Object
14 15 16 |
# File 'lib/navigatrix/configuration.rb', line 14 def unlinked_states active_states end |