Sha256: 4b6ecae01c0102c36ccf36476044421be691326fe619ab14381bb12b8d892625
Contents?: true
Size: 386 Bytes
Versions: 1
Compression:
Stored size: 386 Bytes
Contents
#require './menu' class Dieta attr_accessor :menus #geters y setters asi nos ahorramos escribirlo def initialize(menus) @menus = menus end def to_s string ="" @menus.each_with_index do |elem, i| string+="#{elem.to_s}\n\n" #llama al metodo to_s de la clase menu end return string end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
menualu0100782851-0.1.1 | lib/prct11/dieta.rb |