Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Persona
- def initialize
- @trabajo = False
- @experiencia = 0
- puts "Ahora programo en Ruby y soy re top"
- end
- def getTrabajo
- if @experiencia > 0 then
- @trabajo = True
- puts "Haz conseguido un empleo. En buenahora tigrecillo!"
- @experiencia += 1
- else
- puts "lo sentimos pero hemos tomado a alguien mรกs"
- self.insultar
- end
- end
- def insultar
- puts "Andate a la re concha de tu madre"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement