Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Botchat
- def initialize(nombre = "Mundo")
- @nombre = nombre
- end
- def hola_como_estas
- puts "Bien y tu #{@nombre}!"
- end
- def que_haces
- puts "nada en particular #{@nombre}!"
- end
- def cuentame_un_chiste
- puts "van dos y se cae el del medio, te ha gustado #{@nombre}!"
- end
- def ahora_vengo
- puts "vale aqui te espero #{@nombre}!"
- end
- def me_voy_adios
- puts "vale adios y suerte #{@nombre}!"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement