Class: Edad

Inherits:
Diet show all
Defined in:
lib/prct06/menuedad.rb

Instance Attribute Summary collapse

Attributes inherited from Diet

#dip, #pchdt, #pfts, #pprtn, #rcps, #ttl, #vct

Instance Method Summary collapse

Methods inherited from Diet

#<=>, #new_recipe

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

#edadObject

Returns the value of attribute edad



3
4
5
# File 'lib/prct06/menuedad.rb', line 3

def edad
  @edad
end

Instance Method Details

#to_sObject



8
9
10
11
12
# File 'lib/prct06/menuedad.rb', line 8

def to_s
	a = ""
	a << "#{@edad}\n"
	a << super		
end