class String def import Merb::Server.config[:allow_reloading] ? load( self + '.rb' ) : require( self ) end def controller_class_name self.capitalize end end class MerbHash < HashWithIndifferentAccess def method_missing(m,*a) m.to_s=~/=$/?self[$`]=a[0]:a==[]?self[m]:raise(NoMethodError,"#{m}") end end class Symbol def to_s @str_rep || (@str_rep = id2name.freeze) end end