Underscore - Ruby Secret Weapon July 18, 2016 One-minute read Ruby RubyOnce in IRB, the underscore holds the return value from the last command.1 2 3 4 {name: "John Doe", job: "Developer"} data = _ # it assigns the last command to the variable data data.inspect # => {name: "John Doe", job: "Developer"} Guess what? It works in the Rails console too :)