unmunge (ZenTestMapping)

    # File lib/zentest_mapping.rb, line 86
      def unmunge name
        name = name.to_s.dup

        is_cls_method = name.sub!(/^class_/, '')

        name = name.sub(/_equals(_.*)?$/, '=') unless name =~ /index/
        name = name.sub(/_bang(_.*)?$/, '!')
        name = name.sub(/_eh(_.*)?$/, '?')
        name = name.sub(/^(#{@@mapped_re})(_.*)?$/) {$1}
        name = yield name if block_given?
        name = @@method_map[name] if @@method_map.has_key? name
        name = 'self.' + name if is_cls_method

        name
      end