programmer321 programmer321 - 1 month ago 23
Ruby Question

What does irb --simple-prompt do?

What does irb --simple-prompt do? I'm using a tutorial that does not explain what the term does. I've looked at various websites for documentation but the only definition it gives is circular (--simple-prompt = simple prompt mode).

Answer

It gives you a simpler prompt (lol). No ruby version and no line number.

Example using irb --simple-prompt:

user: $ irb --simple-prompt
>>

Example using irb:

user: shield (master) $ irb
2.0.0-p353 :001 >