Class: Informatics::View::Menu::Item
- Inherits:
-
Object
- Object
- Informatics::View::Menu::Item
- Defined in:
- lib/informatics/lib/informatics/view/menu/item.rb
Instance Attribute Summary collapse
-
#confirm ⇒ Object
Returns the value of attribute confirm.
-
#link ⇒ Object
Returns the value of attribute link.
-
#method ⇒ Object
Returns the value of attribute method.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Item
constructor
A new instance of Item.
Constructor Details
#initialize(options = {}) ⇒ Item
Returns a new instance of Item.
8 9 10 11 12 13 |
# File 'lib/informatics/lib/informatics/view/menu/item.rb', line 8 def initialize( = {}) @text = [:text] @link = [:link] @confirm = [:confirm] @method = [:method] end |
Instance Attribute Details
#confirm ⇒ Object
Returns the value of attribute confirm.
6 7 8 |
# File 'lib/informatics/lib/informatics/view/menu/item.rb', line 6 def confirm @confirm end |
#link ⇒ Object
Returns the value of attribute link.
6 7 8 |
# File 'lib/informatics/lib/informatics/view/menu/item.rb', line 6 def link @link end |
#method ⇒ Object
Returns the value of attribute method.
6 7 8 |
# File 'lib/informatics/lib/informatics/view/menu/item.rb', line 6 def method @method end |
#text ⇒ Object
Returns the value of attribute text.
6 7 8 |
# File 'lib/informatics/lib/informatics/view/menu/item.rb', line 6 def text @text end |