Speed up development with full-stack environments for every branch.

Learn More

HelloMasato [Ruby]

Forked from Basic Ruby Example.

18 Runs 29 Views 0 Copies

Hello, Masato!

Saved

Saved

masatonaka 1

masatonaka
published 3 years ago

    class HelloWorld
       def initialize(name)
          @name = "masato"
       end
       def sayHi
          puts "Hello [email protected]}!"
       end
    end
    
    hello = HelloWorld.new("World")
    hello.sayHi
    Please login/signup to get access to the terminal.

    Your session has timed out.

    Dismiss (the page may not function properly).