Once in IRB, the underscore holds the return value from the last command.

{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 :)