Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 27th, 2012  |  syntax: None  |  size: 0.99 KB  |  views: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Ruby 1.9.2
  2.  
  3. Ruby Koans for exercises http://github.com/edgecase/ruby_koans
  4.  
  5. Ruby for Developers
  6.   Text Editors only
  7.   Ruby 1.9.2 only
  8.  
  9.   h1. Basics
  10.     1 + 2
  11.     1.to_string
  12.     (1 + 2).to_string
  13.     "1" + 2
  14.     Late-binding Strongly Typed
  15.     Control Flow
  16.     All Object Oriented
  17.     leads to "Basic Data Structures"
  18.   h1. Data Structures
  19.     integer => Fixnum
  20.     Float => in Ruby exact precision, but going to/from DB turns it into C double (not exact precision)
  21.               Use BigDecimal to stop this behavior, or integers (cents)
  22.     Strings - big topic!
  23.     Symbols vs. Strings
  24.         Regex -> like perl (Oniguruma regular expression library http://www.geocities.jp/kosako3/oniguruma/)
  25.     yada yada
  26.         Array
  27.         Hash - Associative Array, Dictionary, etc.
  28.  
  29.   h1. Control Flow
  30.  
  31.   h1. Block, Procs & lambdas
  32.     Refer to ragenwald post about this. Difference is in the scope of the passed main object I think.
  33.  
  34.   h1. Classes and duck typing
  35.  
  36.   h1. Environment
  37.     "Every day usage of Ruby"
  38.         Gems
  39.         IRB
  40.         Test::Unit