Class: Edad
Instance Attribute Summary collapse
-
#edad ⇒ Object
Returns the value of attribute edad.
Attributes inherited from Diet
#dip, #pchdt, #pfts, #pprtn, #rcps, #ttl, #vct
Instance Method Summary collapse
-
#initialize(edad, ttl, dip, vct, pprtn, pfts, pchdt) ⇒ Edad
constructor
A new instance of Edad.
- #to_s ⇒ Object
Methods inherited from Diet
Constructor Details
#initialize(edad, ttl, dip, vct, pprtn, pfts, pchdt) ⇒ Edad
Returns a new instance of Edad
4 5 6 7 |
# File 'lib/prct06/menuedad.rb', line 4 def initialize (edad,ttl,dip,vct,pprtn,pfts,pchdt) @edad = edad super(ttl,dip,vct,pprtn,pfts,pchdt) end |
Instance Attribute Details
#edad ⇒ Object
Returns the value of attribute edad
3 4 5 |
# File 'lib/prct06/menuedad.rb', line 3 def edad @edad end |
Instance Method Details
#to_s ⇒ Object
8 9 10 11 12 |
# File 'lib/prct06/menuedad.rb', line 8 def to_s a = "" a << "#{@edad}\n" a << super end |