doesn't matter, but out of curiosity: wouldn't it work to say SmartName.lookup = self ?  from console:

ruby-1.9.2-p290 :003 > class Testo; puts "#{self} #{self.class}"; end
Testo Class