diff options
Diffstat (limited to 'ruby.html.markdown')
| -rw-r--r-- | ruby.html.markdown | 10 | 
1 files changed, 6 insertions, 4 deletions
| diff --git a/ruby.html.markdown b/ruby.html.markdown index 8720fec6..b7f8b4a1 100644 --- a/ruby.html.markdown +++ b/ruby.html.markdown @@ -14,6 +14,7 @@ contributors:    - ["Rahil Momin", "https://github.com/iamrahil"]    - ["Gabriel Halley", "https://github.com/ghalley"]    - ["Persa Zula", "http://persazula.com"] +  - ["Jake Faris", "https://github.com/farisj"]  ---  ```ruby @@ -53,7 +54,7 @@ You shouldn't either  10.* 5 #=> 50  # Special values are objects -nil # Nothing to see here +nil # equivalent to null in other languages  true # truth  false # falsehood @@ -131,7 +132,7 @@ puts "I'm printing!"  # print to the output without a newline  print "I'm printing!" -#=> I'm printing! => nill +#=> I'm printing! => nil  # Variables  x = 25 #=> 25 @@ -229,8 +230,8 @@ new_hash = { defcon: 3, action: true }  new_hash.keys #=> [:defcon, :action]  # Check existence of keys and values in hash -new_hash.has_key?(:defcon) #=> true -new_hash.has_value?(3) #=> true +new_hash.key?(:defcon) #=> true +new_hash.value?(3) #=> true  # Tip: Both Arrays and Hashes are Enumerable  # They share a lot of useful methods such as each, map, count, and more @@ -588,6 +589,7 @@ Something.new.qux # => 'qux'  ## Additional resources  - [Learn Ruby by Example with Challenges](http://www.learneroo.com/modules/61/nodes/338) - A variant of this reference with in-browser challenges. +- [An Interactive Tutorial for Ruby](https://rubymonk.com/) - Learn Ruby through a series of interactive tutorials.  - [Official Documentation](http://www.ruby-doc.org/core-2.1.1/)  - [Ruby from other languages](https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/)  - [Programming Ruby](http://www.amazon.com/Programming-Ruby-1-9-2-0-Programmers/dp/1937785491/) - An older [free edition](http://ruby-doc.com/docs/ProgrammingRuby/) is available online. | 
