class Dessert
def initialize(name,calories)
@name=name
@calories=Float(calories)
end
def healthy?
calories<200
end
def delicious?
end
end
icecream=Dessert.new('ice',100)
p icecream
p icecream.healthy?
Y2xhc3MgRGVzc2VydAogICAgICAgIGRlZiBpbml0aWFsaXplKG5hbWUsY2Fsb3JpZXMpCiAgICAgICAgQG5hbWU9bmFtZQogICAgICAgIEBjYWxvcmllcz1GbG9hdChjYWxvcmllcykKICAgICAgICBlbmQgCgogICAgICAgIGRlZiBoZWFsdGh5PwogICAgICAgIGNhbG9yaWVzPDIwMAogICAgICAgIGVuZCAKICAgIAogICAgICAgIGRlZiBkZWxpY2lvdXM/CiAgICAgICAgZW5kIAplbmQKaWNlY3JlYW09RGVzc2VydC5uZXcoJ2ljZScsMTAwKQpwIGljZWNyZWFtCnAgaWNlY3JlYW0uaGVhbHRoeT8=