CSE 341 -- Ruby
Running Ruby
Running Ruby - Quickstart
(probably all you need)
Ruby Installation
(lots more detail)
tutorial on Ruby mode for emacs
Ruby Introduction
pptx
pdf
lecture summary
PosRational.rb
Blocks and Procs
pptx
pdf
lecture summary
blocks_inheritance.rb
block_proc.rb
(converting between blocks and procs)
Inheritance and Mixins
pptx
pdf
mixins.rb
(examples of mixins). Also see the Ruby documentation for
Comparable
and
Emumerable
.
self_super.rb
(self and super, including mixins)
Coercing Numeric Types
mycomplex.rb
(useful for Assignment 8)
Reflection
Reflection
octopus.rb
(example class)
Unit testing in Ruby:
PosRationalTester.rb
. Doc links:
Test::Unit
,
Test::Unit::Assertions
Mini-Exercises
Ruby Mini-exercises #1
;
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)