• Wincent
    Open
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

IRBEdit

Created 3/31/2007, updated 5/18/2017

IRB is short for Interactive Ruby.

You can start an Interactive Ruby session by issuing irb at the command line.

Example session

$ irb
irb(main):001:0> puts "Hello, world!"
Hello, world!
=> nil
irb(main):002:0> exit

Tips

Access the result of the last expression with _

$ 4 + 9
=> 13
$ _
=> 13

Source: http://rubyquicktips.tumblr.com/post/342527837/console-tip-retrieve-the-last-return-value-with

  • ruby
  • irb
  • wiki
Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell using React, Relay and GraphQL (with help from Git, Redis and Neovim).