Class: MenuAge
Overview
Instance Attribute Summary collapse
-
#age ⇒ Object
readonly
Returns the value of attribute age.
Attributes inherited from Menu
#Content, #Etiqueta, #Porcentage, #Title
Instance Method Summary collapse
-
#initialize(title, porcentage, content, age) ⇒ MenuAge
constructor
A new instance of MenuAge.
-
#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, age) ⇒ MenuAge
Returns a new instance of MenuAge.
5 6 7 8 |
# File 'lib/Prct07/MenuAge.rb', line 5 def initialize(title, porcentage, content, age) super(title, porcentage, content) @age = age end |
Instance Attribute Details
#age ⇒ Object (readonly)
Returns the value of attribute age.
3 4 5 |
# File 'lib/Prct07/MenuAge.rb', line 3 def age @age end |
Instance Method Details
#ownMethod ⇒ Object
used for TDD expectatives
11 12 13 |
# File 'lib/Prct07/MenuAge.rb', line 11 def ownMethod true end |