I am working on a remote server with Putty. My class looks like:
class Hangman
def initialize
puts "Hello world"
end
end
But when I write in Putty ruby hangman.rb, it skips to the next editor console line without showing anything. Any suggestions?
Hangman.newat the end to see your message. Or inirbtypeload "hangman.rb"then you can try out your new class interactively