Class: PacienteT
- Defined in:
- lib/alu0101042305/persona.rb
Instance Attribute Summary
Attributes inherited from PacienteM
#cadera, #cintura, #edad, #menu, #peso, #talla
Attributes inherited from Paciente
Attributes inherited from Persona
Instance Method Summary collapse
Methods inherited from PacienteM
#actividad, #addMenu, #basal, #imc, #initialize, #menuOk?, #pesoIdeal, #termogeno, #to_s, #total
Methods inherited from Paciente
Methods inherited from Persona
Constructor Details
This class inherits a constructor from PacienteM
Instance Method Details
#<=>(other) ⇒ Object
95 96 97 98 99 |
# File 'lib/alu0101042305/persona.rb', line 95 def <=> other raise TypeError, "Se esperaba un objeto Persona" unless other.is_a?Persona return self.total <=> other.total if other.is_a?PacienteT return -1 end |