The document discusses the key new features in Ruby 2.0, including improved compatibility with Ruby 1.9, new literal symbol lists, keyword arguments, module prepend, lazy enumerators, refinements, and an improved garbage collection system using bitmap marking. It also provides an overview of installing Ruby and Rails using RVM.
17. module Foo
def self.included(base)
base.class_eval do
alias_method :original_to_s, :to_s
def to_s
original_to_s + ", Foo"
end
end
end
end
class Array
include Foo
end