Fabian Streitel wrote: > hi, try this: > > class A > class << self > def go > obj = A.new > def obj.method_missing *args > p 'method missing' > end > obj > end > end > end > > A.go.uiae > A.new.uiae > > Greetz! i checked this program was run the out put is akshat@-desktop:~/Ruby/meta_class_&_patanahi_23_july$ ruby test_meta3.rb "method missing" test_meta3.rb:14: undefined method `uia' for #<A:0xb7ca3944> (NoMethodError) akshat@-desktop:~/Ruby/meta_class_&_patanahi_23_july$ -- Posted via http://www.ruby-forum.com/.