Ruby Language Constructs
The constructs given here are a practical initial grasp of the Ruby language. Further, the ideas which are provided here can be generalized to any general-purpose scripting language. While not exhaustive, the concepts given here are a perfect introduction software programming. It is left to the reader to further explore the Ruby language and ecosystem. A further exercise for the interested programmer is to discover the equivalent syntax in other general-purpose languages (such as JavaScript or Python), and to complete the algorithmic exercises in the other paradigm.
-
Ruby Programs
-
Ruby Datatypes
-
Defining a Variable
-
Ruby Conditionals
-
Defining a Method
-
Ruby Number Methods
-
Ruby String Methods
-
Ruby Enumerable Methods