| Speaking the Lingo | [ Prev | Home | Next ] |
class Module
alias :original_const_missing :const_missing
def const_missing(name)
if name.to_s =~ /^([LRUDFB][2_]?)+$/
twist(name.to_s)
else
original_const_missing(name)
end
end
end
| RubyConf.new(2005) | Copyright © 2005 by Jim Weirich (Some Rights Reserved) |