CSE 341 -- Ruby
Running Ruby
Ruby Introduction:
slides-1up
,
slides-4up
,
PosRational.rb
,
ducktyping.rb
Unit testing in Ruby:
PosRationalTester.rb
. 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
,
self_super.rb
Reflection
;
octopus.rb
(example class)
HiWorld.rb
HiWorld.rb from Friday's lecture (Feb26)
Mini-Exercises
Ruby Mini-exercises
;
solution
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)