Class: MenuAge

Inherits:
Menu
  • Object
show all
Defined in:
lib/Prct07/MenuAge.rb

Overview

Author:

Instance Attribute Summary collapse

Attributes inherited from Menu

#Content, #Etiqueta, #Porcentage, #Title

Instance Method Summary collapse

Methods inherited from Menu

#<=>, #check_content, #check_name, #check_porcentage, #etiqueta, #get_fats, #get_hidrates, #get_proteins, #get_vct, #plato, #porcentage, #to_s

Constructor Details

#initialize(title, porcentage, content, age) ⇒ MenuAge

Returns a new instance of MenuAge.



5
6
7
8
# File 'lib/Prct07/MenuAge.rb', line 5

def initialize(title, porcentage, content, age)
  super(title, porcentage, content)
  @age = age
end

Instance Attribute Details

#ageObject (readonly)

Returns the value of attribute age.



3
4
5
# File 'lib/Prct07/MenuAge.rb', line 3

def age
  @age
end

Instance Method Details

#ownMethodObject

used for TDD expectatives



11
12
13
# File 'lib/Prct07/MenuAge.rb', line 11

def ownMethod
  true
end