Class: MenuContent
Overview
Instance Attribute Summary collapse
-
#groups ⇒ Object
readonly
Returns the value of attribute groups.
Attributes inherited from Menu
#Content, #Etiqueta, #Porcentage, #Title
Instance Method Summary collapse
-
#initialize(title, porcentage, content, groups) ⇒ MenuContent
constructor
A new instance of MenuContent.
-
#ownMethod ⇒ Object
used for TDD expectatives.
Methods inherited from Menu
#<=>, #check_content, #check_name, #check_porcentage, #etiqueta, #get_fats, #get_hidrates, #get_proteins, #get_vct, #plato, #porcentage, #to_s
Constructor Details
#initialize(title, porcentage, content, groups) ⇒ MenuContent
Returns a new instance of MenuContent.
5 6 7 8 |
# File 'lib/Prct07/MenuContent.rb', line 5 def initialize(title, porcentage, content, groups) super(title, porcentage, content) @groups = groups end |
Instance Attribute Details
#groups ⇒ Object (readonly)
Returns the value of attribute groups.
3 4 5 |
# File 'lib/Prct07/MenuContent.rb', line 3 def groups @groups end |
Instance Method Details
#ownMethod ⇒ Object
used for TDD expectatives
11 12 13 |
# File 'lib/Prct07/MenuContent.rb', line 11 def ownMethod true end |