Class: Fidelity::Widget::Subnav::Item
- Inherits:
-
Object
- Object
- Fidelity::Widget::Subnav::Item
- Defined in:
- app/fidelity/widgets/subnav/subnav.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(label = 'Item', state = nil) ⇒ Item
constructor
A new instance of Item.
Constructor Details
#initialize(label = 'Item', state = nil) ⇒ Item
Returns a new instance of Item.
28 29 30 31 |
# File 'app/fidelity/widgets/subnav/subnav.rb', line 28 def initialize label='Item', state=nil @label = label @state = state end |
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label.
27 28 29 |
# File 'app/fidelity/widgets/subnav/subnav.rb', line 27 def label @label end |
#state ⇒ Object
Returns the value of attribute state.
27 28 29 |
# File 'app/fidelity/widgets/subnav/subnav.rb', line 27 def state @state end |