Class: Test::Unit::Diff::Differ
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Inherits: | Object |
Defined in: | lib/test/unit/diff.rb |
Class Method Summary
- .new(from, to) ⇒ Differ constructor
Instance Method Summary
- #tag(mark, contents) private
Constructor Details
.new(from, to) ⇒ Differ
# File 'lib/test/unit/diff.rb', line 265
def initialize(from, to) @from = from @to = to end
Instance Method Details
#tag(mark, contents) (private)
[ GitHub ]# File 'lib/test/unit/diff.rb', line 271
def tag(mark, contents) contents.collect {|content| "#{mark}#{content}"} end