munge (ZenTestMapping)

    # File lib/zentest_mapping.rb, line 62
      def munge name
        name = name.to_s.dup

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

        name = @@method_map[name] if @@method_map.has_key? name
        name = name.sub(/=$/, '_equals')
        name = name.sub(/\?$/, '_eh')
        name = name.sub(/\!$/, '_bang')

        name = yield name if block_given?

        name = "class_" + name if is_cls_method

        name
      end