You press the Enter key, irb evaluates your Ruby and gives you the result : irb « Language Basics « Ruby






You press the Enter key, irb evaluates your Ruby and gives you the result


C:\rubydev>irb
irb(main):001:0> puts "Hello from Ruby."
Hello from Ruby.

 








Related examples in the same category

1.Check the version of Interactive Ruby
2.Working with Ruby Interactively, start irb
3.Enter your Ruby code at that prompt, such as puts "Hello from Ruby."