Top "Irb" questions

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

What alternatives to IRB are there?

In the python world, there are a number of alternative python interpreters that add cool additional features. One particularly useful …

ruby irb
How to load environment variables in the Rails console?

I think this is a little, easy question! I'm using .env file to keep all my environment variables, and i'm …

ruby-on-rails-3 environment-variables irb foreman
How to print a string with a backward slash in Ruby

I have a string str = "xyz\123" and I want to print it as is. The IRB is giving me an …

ruby string irb ruby-1.9.2 backslash
How to format irb command prompt

Previously I was using Ruby 1.8 and my irb command prompt used to look like this: Air ~: irb >> a = 1 =&…

ruby irb
NameError: uninitialized constant Object::User

I searched the other posts that had this issue and could not find one that fixed my particular issue. My …

ruby-on-rails constants irb nameerror
Does Ruby use $stdout for writing the output of puts and return?

I want to know the output stream being used by Ruby to print these things at the command-line: irb(main):001:0&…

ruby irb pry