Class: Test::Unit::UI::Console::ColorizedReadableDiffer
- Inherits:
-
Diff::ReadableDiffer
- Object
- Diff::Differ
- Diff::ReadableDiffer
- Test::Unit::UI::Console::ColorizedReadableDiffer
- Defined in:
- lib/test/unit/ui/console/testrunner.rb
Instance Method Summary collapse
-
#initialize(from, to, runner) ⇒ ColorizedReadableDiffer
constructor
A new instance of ColorizedReadableDiffer.
- #need_diff?(options = {}) ⇒ Boolean
Methods inherited from Diff::ReadableDiffer
Constructor Details
#initialize(from, to, runner) ⇒ ColorizedReadableDiffer
Returns a new instance of ColorizedReadableDiffer.
607 608 609 610 |
# File 'lib/test/unit/ui/console/testrunner.rb', line 607 def initialize(from, to, runner) @runner = runner super(from, to) end |
Instance Method Details
#need_diff?(options = {}) ⇒ Boolean
612 613 614 615 616 617 618 |
# File 'lib/test/unit/ui/console/testrunner.rb', line 612 def need_diff?(={}) return false if one_line_all_change? operations.each do |tag,| return true if [:replace, :equal].include?(tag) end false end |