------ art_120279_23019636.1230793787398
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Weird, if you use A.instance_eval("self::WHY") it simply works... can anyone
explain it?
On Wed, Dec 31, 2008 at 12:20 PM, Kyung won Cheon <kdream95 / gmerce.co.kr>wrote:
> class A
> WHY I don't know why!!"
>
> def self.foo
> instance_eval("WHY")
> end
> end
>
> puts A.instance_eval { foo } # I don't know why!!
> puts A.instance_eval("WHY") # uninitialized constant Class::WHY
> (NameError)
>
> ###############
> # Help Me^^
> ###############
> --
> Posted via http://www.ruby-forum.com/.
>
>
--
Bernardo Rufino
------ art_120279_23019636.1230793787398--