class Symbol # faster Symbol#to_s to speed up routing. def to_s @str_rep ||= id2name.freeze end # ["foo", "bar"].map &:reverse #=> ['oof', 'rab'] def to_proc Proc.new{|*args| args.shift.__send__(self, *args)} end end