Learn Ruby 2011
     Session 1
Our Sponsors
Flatsourcing, iSeatz, Koda, and Launchpad
Welcome
Ready to learn Ruby?
Why Are We Here?
 More to the point, why are you here?
Why Learn Ruby?
 Other than the obvious street cred
Features
Features

• REALLY Object-Oriented
Features

• REALLY Object-Oriented
• Clean & Readable Syntax
Features

• REALLY Object-Oriented
• Clean & Readable Syntax
• “Funner” To Program
Features

• REALLY Object-Oriented
• Clean & Readable Syntax
• “Funner” To Program
• Ruby on Rails
So, Why Ruby & You?
 Really, why do you want to learn Ruby?
Installing Ruby
  Windows, Linux or Mac
The Ruby Toolbox
ruby
The actual interpreter
ri
Ruby Interactive Documentation
rdoc
Ruby Documentation Generator
irb
Interactive Ruby Environment
Ruby Gems
Ruby Package Management
Playing Around
  This is what IRB is for
$ irb
$ irb
> puts “Hello, World!”
$ irb
> puts “Hello, World!”
Hello, World!
=> nil
> “Hello, World!”.class
> “Hello, World!”.class
=> String
> 2.class
> 2.class
=> Fixnum
> Fixnum.class
> Fixnum.class
=> Class
> nil.class
> nil.class
=> NilClass
> 5.times { puts “Hello!” }
> 5.times { puts “Hello!” }
Hello!
Hello!
Hello!
Hello!
Hello!
=> 5
Resources
Resources

• rubydoc.info
Resources

• rubydoc.info
• rubygems.org
Resources

• rubydoc.info
• rubygems.org
• ruby-toolbox.com
For Next Week
For Next Week


• Play around in IRB
For Next Week


• Play around in IRB
• Explore rubydoc.info, especially the Stdlib
  section

Learn Ruby 2011 - Session 1