From: Brian Candler Date: 2012-08-18T16:38:37+09:00 Subject: Re: extending class, namespace question Jan E. wrote in post #1072542: > A Ruby integer is always an instance of the built-in classes ::Fixnum or > ::Bignum. You cannot have different integers depending on the > surrounding module. > > This is actually a good thing, because you certainly don't want such > elementary objects to behave context-dependend. I think that's exactly what the proposed ruby 2.0 "refinements" are intended to do. http://yehudakatz.com/2010/11/30/ruby-2-0-refinements-in-practice/ -- Posted via http://www.ruby-forum.com/.