Difference between revisions of "Ruby on Rails"

From Hawk Wiki
Jump to: navigation, search
(Created page with "Beginner's tutorial<br> http://allaboutruby.wordpress.com/2006/01/09/installing-rails-on-windows-step-by-step-tutorial/<br> Ruby in 20 minutes<br> http://www.ruby-lang.org/en/doc...")
 
Line 3: Line 3:
 
Ruby in 20 minutes<br>
 
Ruby in 20 minutes<br>
 
http://www.ruby-lang.org/en/documentation/quickstart/<br>
 
http://www.ruby-lang.org/en/documentation/quickstart/<br>
 +
 +
--nil? empty? and blank?--
 +
.nil? can be used on any object and is true if the object is nil.
 +
 +
.empty? can be used on strings, arrays and hashes and returns true if:
 +
 +
String length == 0
 +
Array length == 0
 +
Hash length == 0

Revision as of 18:07, 16 September 2013

Beginner's tutorial
http://allaboutruby.wordpress.com/2006/01/09/installing-rails-on-windows-step-by-step-tutorial/
Ruby in 20 minutes
http://www.ruby-lang.org/en/documentation/quickstart/

--nil? empty? and blank?-- .nil? can be used on any object and is true if the object is nil.

.empty? can be used on strings, arrays and hashes and returns true if:

String length == 0 Array length == 0 Hash length == 0