Top "Irb" questions

Interactive Ruby (IRB) is a shell for programming in Ruby.

how to get the current working directory's absolute path from irb

I'm running Ruby on Windows though I don't know if that should make a difference. All I want to do …

ruby irb working-directory
Ruby: How to load a file into interactive ruby console (IRB)?

I am using IRB (interactive ruby console) to learn how to program with Ruby. How do I load a file …

ruby irb
A JSON text must at least contain two octets

I received this error, and I couldn't find any reasonable answer to this question, so I thought I'd write a …

ruby-on-rails ruby json irb
How to run a .rb file from IRB?

I am starting out with Ruby on Rails. I am currently going through a tutorial where it says that I …

ruby-on-rails ruby irb
How to get nice formatting in the Rails console

I want to get something like this to look nice: >> ProductColor.all => [#<ProductColor id: 1, name: "White", …

ruby-on-rails irb
How Do You Clear The IRB Console?

How do you clear the IRB console screen?

ruby irb
Ruby: How to make IRB print structure for Arrays and Hashes

When I make a new array/hash in irb, it prints out a nice format to show the structure, ex. ["…

ruby irb
How do I Quit IRB from the command line? (Using terminal on mac)

Basically, I'm typing along just fine in terminal, using IRB to run ruby commands: 2.0.0-p0 :014 > bank_account.withdraw(2222) => …

ruby-on-rails terminal irb
How can I reload a script in IRB?

I am writing a Ruby script for use in the Rails environment, but I chose to run it from irb …

ruby irb
How do you list the currently available objects in the current scope in ruby?

I'm new to ruby and I'm playing around with the IRB. I found that I can list methods of an …

ruby introspection irb