Misc

Case sensitivity

  • Ruby is case sensitive.

Memory management

  • Mark-and-sweep garbage collector, which works with all Ruby objects

Modules

  • load '[PATH/]myfile.rb'
  • require '[PATH/]myfile[.rb]'

Misc

  • Object-oriented scripting language
  • Useful for processing text files and performing system management tasks (as with Perl and Python)
  • Heavily influenced by Smalltalk
  • Licensed under the Ruby License and the GPL (in effect, FSF-approved; GPL-compatible)
  • Modules: Collections of methods; every class can import a module and get all of its methods
  • OS-independent threading, for all platforms (whether or not the OS supports threading)
  • The notation Class#method is sometimes used in documentation to represent an instance method; it is not valid Ruby syntax
  • dup method - Create a duplicate object
  • freeze method - write-protect an object