Class: Menu_edad
Instance Attribute Summary collapse
-
#edad ⇒ Object
Returns the value of attribute edad.
Attributes inherited from Menu
#ingestaPor, #platos, #porcentajeGra, #porcentajeHid, #porcentajePro, #titulo, #valorCT
Instance Method Summary collapse
-
#initialize(titulo, ingestaPor, platos, valorCT, porcentajePro, porcentajeGra, porcentajeHid, edad) ⇒ Menu_edad
constructor
A new instance of Menu_edad.
- #to_s ⇒ Object
Methods inherited from Menu
Constructor Details
#initialize(titulo, ingestaPor, platos, valorCT, porcentajePro, porcentajeGra, porcentajeHid, edad) ⇒ Menu_edad
Returns a new instance of Menu_edad.
5 6 7 8 9 |
# File 'lib/prct11/menu_edad.rb', line 5 def initialize(titulo, ingestaPor, platos, valorCT, porcentajePro, porcentajeGra, porcentajeHid, edad) super(titulo, ingestaPor, platos, valorCT, porcentajePro, porcentajeGra, porcentajeHid) @edad = edad end |
Instance Attribute Details
#edad ⇒ Object
Returns the value of attribute edad.
3 4 5 |
# File 'lib/prct11/menu_edad.rb', line 3 def edad @edad end |
Instance Method Details
#to_s ⇒ Object
11 12 13 14 |
# File 'lib/prct11/menu_edad.rb', line 11 def to_s string = "Menu para edades entre: [#{edad[0]} - #{edad[1]}] aƱos\n" + super.to_s return string end |