Class: CC::Formatters::SnapshotFormatter::Sample
- Defined in:
- lib/cc/formatters/snapshot_formatter.rb
Overview
Override the base snapshot formatter for be more lax grouping information. This is useful to show more information for testing the service.
Instance Attribute Summary
Attributes inherited from Base
#alert_constants_payload, #compare_url, #details_url, #improved_constants_payload
Instance Method Summary collapse
- #decreased_constants_selector ⇒ Object
- #improved_constants_selector ⇒ Object
- #new_constants_selector ⇒ Object
Methods inherited from Base
Constructor Details
This class inherits a constructor from CC::Formatters::SnapshotFormatter::Base
Instance Method Details
#decreased_constants_selector ⇒ Object
92 93 94 |
# File 'lib/cc/formatters/snapshot_formatter.rb', line 92 def decreased_constants_selector proc { |constant| (constant) < (constant) } end |
#improved_constants_selector ⇒ Object
96 97 98 |
# File 'lib/cc/formatters/snapshot_formatter.rb', line 96 def improved_constants_selector proc { |constant| (constant) > (constant) } end |
#new_constants_selector ⇒ Object
88 89 90 |
# File 'lib/cc/formatters/snapshot_formatter.rb', line 88 def new_constants_selector proc { |_| true } end |