Class: BuildMaster::MenuItem
- Inherits:
-
Object
- Object
- BuildMaster::MenuItem
- Defined in:
- lib/buildmaster/site/template_builder.rb
Instance Attribute Summary collapse
-
#link ⇒ Object
Returns the value of attribute link.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title, link) ⇒ MenuItem
constructor
A new instance of MenuItem.
Constructor Details
#initialize(title, link) ⇒ MenuItem
Returns a new instance of MenuItem.
44 45 46 47 |
# File 'lib/buildmaster/site/template_builder.rb', line 44 def initialize(title, link) @title = title @link = link end |
Instance Attribute Details
#link ⇒ Object
Returns the value of attribute link.
41 42 43 |
# File 'lib/buildmaster/site/template_builder.rb', line 41 def link @link end |
#title ⇒ Object
Returns the value of attribute title.
41 42 43 |
# File 'lib/buildmaster/site/template_builder.rb', line 41 def title @title end |