Class: Mutant::Reporter::Trace
- Inherits:
-
Object
- Object
- Mutant::Reporter::Trace
- Includes:
- Adamantium::Mutable
- Defined in:
- lib/mutant/reporter/trace.rb
Overview
Reporter to trace report calls, used as a spec adapter
Class Method Summary collapse
-
.new ⇒ Trace
private
Return new trace reporter.
Instance Method Summary collapse
-
#progress(object) ⇒ self
private
Report new progress on object.
-
#report(object) ⇒ self
private
Report object.
-
#warn(message) ⇒ self
private
Warn with message.
Class Method Details
.new ⇒ Trace
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return new trace reporter
13 14 15 |
# File 'lib/mutant/reporter/trace.rb', line 13 def self.new super(Hash[anima.attribute_names.map { |name| [name, []] }]) end |
Instance Method Details
#progress(object) ⇒ self
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Report new progress on object
51 52 53 54 |
# File 'lib/mutant/reporter/trace.rb', line 51 def progress(object) progress_calls << object self end |
#report(object) ⇒ self
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Report object
38 39 40 41 |
# File 'lib/mutant/reporter/trace.rb', line 38 def report(object) report_calls << object self end |
#warn(message) ⇒ self
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Warn with message
25 26 27 28 |
# File 'lib/mutant/reporter/trace.rb', line 25 def warn() warn_calls << self end |