From: Joel VanderWerf Date: 2007-12-25T06:17:15+09:00 Subject: Re: Monkey-patching with modules Mike Holly wrote: > module Foo > class String You are defining a new class, Foo::String. Try this here instead: class ::String The :: means 'look up String in the global scope'. > def hi > puts 'hi' > end > end > end > > include Foo > > x = "hello" > x.hi > > Why does this not work? > > Thanks. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407