Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/ruby
- #! RUBYLANG=Español
- begin
- def saludo;@saludo;end
- def nombre;@nombre;end
- def saludo=(arg);@saludo=arg;end
- def nombre=(arg);@nombre=arg;end
- def ⁄Hola⁄;"Hello";end
- saludo, nombre = "Hello", "Daniel"
- puts "#{saludo} #{nombre}" if ⁄Hola⁄ === saludo
- puts "I guess you don't speak spanish."
- rescue
- puts "English is not allowed! 'Hello' should be: 'Hola'"
- end
Add Comment
Please, Sign In to add comment