Sha256: 4c4762b5c22c031075848e33ec3a01fd4053713551855f34c68964a47a5271b8
Contents?: true
Size: 202 Bytes
Versions: 2
Compression:
Stored size: 202 Bytes
Contents
class Dietas attr_reader :menus def initialize menus @menus = menus end def porcentaje_diario @total=0 @menus.map {|menu| @total=@total + menu.get_porcentaje } @total end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
dieta-alu0100226300-0.1.0 | lib/dieta/dietas.rb |
dieta_alu0100648782-0.1.0 | lib/dieta/dietas.rb |