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

Learn More

Basic Ruby Example

191 Runs 331 Views 18 Copies
Saved

Saved

praful 60

praful
published 3 years ago

    class HelloWorld
       def initialize(name)
          @name = name.capitalize
       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).