Method: Menu#to_s

Defined in:
lib/prct06/menu.rb

#to_sObject



59
60
61
62
63
64
65
66
67
68
# File 'lib/prct06/menu.rb', line 59

def to_s()
	output = "#{@day}\t\t\t\t\tComposición nutricional\n"
	output << "=" * 100 + "\n"
	output << "\t\t\tgrasas\tcarbohidratos\tproteínas\tfibra\tsal\tvalor energético\n"
	output << "Desayuno\n" + to_s_helper(@breakfast) + "\n"
	output << "Almuerzo\n" + to_s_helper(@lunch) + "\n"
	output << "Cena\n" + to_s_helper(@dinner)
	output << "Valor energético total #{@tot_energy}"
	output
end