Ruby Command Line

ruby -v – Tells us which version of Ruby is installed. which ruby – Tells us where Ruby is located on the system. ruby -e ‘puts 94118’ – Used to run a single line of Ruby. ruby test.rb – Used to execute/run a Ruby file. ri String#upcase – ri stands for Ruby Information. Used for… Continue reading Ruby Command Line

Published
Categorized as Ruby

Introducing Ruby

What is Ruby? Ruby is a programming language that was created in Japan, in 1995, by Yukihiro Matsumoto (Matz). Ruby has a syntax similar to Perl, Python, and Smalltalk. Ruby is not a compiled language (like C++, Java, Visual Basic). A compiled language is a language where you write the code and then you have… Continue reading Introducing Ruby

Published
Categorized as Ruby