I Love Ruby: Learn Ruby Programming LanguageMind As Lab Starting out Ruby programming, then probaly this book is the most easiest way to learn it. This book comes complete with tens of example code. |
Contents
Struct and OpenStruct | 106 |
Rdoc | 110 |
Modules and Mixins | 114 |
Shebang | 125 |
Date and Time | 126 |
Files | 132 |
Proc Lambdas and Blocks | 152 |
Multi Threading | 162 |
Comparison and Logic | 27 |
Loops | 39 |
Arrays | 49 |
Hashes and Symbols | 56 |
Ranges | 63 |
Functions | 67 |
Variable Scope | 76 |
Classes Objects | 82 |
Exception Handling | 179 |
Regular Expressions | 185 |
Gems | 200 |
Meta Programming | 206 |
Final Word | 212 |
Underscore | 215 |
An important Math Discovery | 216 |
Common terms and phrases
20 end end argument array assign attr_accessor block boom thata capture class Square create diff Dollar::line editor and execute element end def end Output example executed the program f.gets f.pos factorial File.open following code gets.chop global variable hash hence highlighted code install instance variable Karthik lambda length Lets say line puts Linux loop Love Ruby mark match MatchData Math Meta Programming mixin mutex my_array object Output Hello p.name perimeter piece of code print Enter print_line print_x Proc programming language Ramanuja readlines regexp regular expression return statement returns Robot robot_count Robot.new Ruby interpreter Ruby language Ruby on Rails Ruby program shown side_length end sleep(1 something.txt Square.new statement puts stored string contains stuff Sun Apr 25 symbol Take a look text editor thing thread Thread.new Time.now type the following Type the program usr/bin/ruby variable called variable named write YAML zero Zigor