Enter your Ruby code at that prompt, such as puts "Hello from Ruby." : irb « Language Basics « Ruby






Enter your Ruby code at that prompt, such as puts "Hello from Ruby."


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

 








Related examples in the same category

1.Check the version of Interactive Ruby
2.Working with Ruby Interactively, start irb
3.You press the Enter key, irb evaluates your Ruby and gives you the result