Skip to main content

Diigo Home

Ruby Programming/Hello world - Wikibooks, collection of open-content textbooks - The Diigo Meta page

en.wikibooks.org/...Hello_world - Cached - Annotated View

Benx Shen's personal annotations on this page

benxshen
Benxshen bookmarked on 2009-10-24
  • The shebang line is read by the shell to determine what program to use to run the script. This line cannot be preceded by any blank lines or any leading spaces. The new hello-world.rb program – with the shebang line – looks like this:


    #!/usr/bin/ruby

    puts 'Hello world'

This link has been bookmarked by 1 people . It was first bookmarked on 24 Oct 2009, by Benx Shen.

  • 24 Oct 09
    • The shebang line is read by the shell to determine what program to use to run the script. This line cannot be preceded by any blank lines or any leading spaces. The new hello-world.rb program – with the shebang line – looks like this:


      #!/usr/bin/ruby

      puts 'Hello world'