Class Index [+]

Quicksearch

Test::Unit::Diff

Public Instance Methods

diff(differ_class, from, to, options={}) click to toggle source

(Not documented)

# File lib/test/unit/diff.rb, line 718
      def diff(differ_class, from, to, options={})
        differ = differ_class.new(from.split(/\r?\n/), to.split(/\r?\n/))
        differ.diff(options).join("\n")
      end
fold(string) click to toggle source

(Not documented)

# File lib/test/unit/diff.rb, line 700
      def fold(string)
        string.split(/\r?\n/).collect do |line|
          line.gsub(/(.{78})/, "\\1\n")
        end.join("\n")
      end
folded_readable(from, to, options={}) click to toggle source

(Not documented)

# File lib/test/unit/diff.rb, line 706
      def folded_readable(from, to, options={})
        readable(fold(from), fold(to), options)
      end
need_fold?(diff) click to toggle source

(Not documented)

# File lib/test/unit/diff.rb, line 696
      def need_fold?(diff)
        /^[-+].{79}/ =~ diff
      end
readable(from, to, options={}) click to toggle source

(Not documented)

# File lib/test/unit/diff.rb, line 710
      def readable(from, to, options={})
        diff(ReadableDiffer, from, to, options)
      end
unified(from, to, options={}) click to toggle source

(Not documented)

# File lib/test/unit/diff.rb, line 714
      def unified(from, to, options={})
        diff(UnifiedDiffer, from, to, options)
      end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.