The Nuby Files
Less chat, more code. Thanks everyone on ruby-talk / comp.lang.ruby for their questions and answers that got me to write most of these.
Just get to the files…
- arrays.rb – Some array experiments.
- array-hash.rb – Playing around with arrays and hashes.
- assign.rb – Single and multiple parallel assignment.
- basicfile.rb – Very basic file IO.
- bitwise.rb – bitwise operators.
- class-def.rb – When does the class definition get executed?
- class-one.rb – My very first Ruby classes!!
- class-var.rb – Playing with class variables.
- class-var2.rb – More playing with class variables.
- closure-block.rb – Blocks (closures) and method calls.
- dynmeth.rb – Adding dynamic methods from blocks and strings.
- flexi-class.rb – The fleeeeeexibilty of Ruby classes…
- hashkey.rb – Changing behaviour of hash key classes.
- loop.rb – Various loops and iterators.
- methods.rb – Different method usage.
- mod_inst_vars.rb – Modules and instance variables.
- more-type.rb – My playing around with types.
- oper.rb – Operator? OPERATOR? [bangs handset on desk] OP-ER-A-TOR!!
- require-include.rb – require and, um, include.
- rescue.rb – C’mon baby, and rescue me (from these exceptions).
- strings.rb – Getting to know strings a bit.
- syms-methods.rb – Symbols aren’t methods!
- zlibby.rb – Using Zlib compression on strings.
Note
This isn’t a tutorial, or an exhaustive set of examples. I’m not teaching style or programming, or anything. It’s boring, start out stuff. If you feel theres anything badly wrong you can always tell me

