The concpet of extending existing classes in ruby (including those in the standard library) is called Open Classes. Here is an example.