CSE 341 -- Ruby
Running Ruby
Ruby Introduction:
slides-1up
,
slides-4up
,
PosRational.rb
,
ducktyping.rb
Unit testing in Ruby:
PosRationalTester.rb
,
NewPosRational.rb
(alternate version that's more amenable to unit testing). Doc links:
Test::Unit
,
Test::Unit::Assertions
block_proc.rb
(converting between blocks and Procs)
Dynamic Dispatch and Inheritance:
slides-1up
,
slides-4up
,
inheritance.rb
Reflection
;
octopus.rb
(example class)
External Links
Ruby home page
(includes downloads)
Ruby in 20 minutes
(quick overview)
Ruby API documentation
Programming Ruby
(first 8 chapters of the first edition of the suggested Ruby textbook)
Other Ruby resources
(from CSE 341, Autumn 2007)