Class: Hashira::CI::Improvement
- Inherits:
-
Object
- Object
- Hashira::CI::Improvement
- Defined in:
- lib/hashira/ci/improvement.rb
Instance Method Summary collapse
-
#initialize(label, io: $stdout) ⇒ Improvement
constructor
A new instance of Improvement.
- #print(removed) ⇒ Object
Constructor Details
#initialize(label, io: $stdout) ⇒ Improvement
Returns a new instance of Improvement.
4 5 6 7 |
# File 'lib/hashira/ci/improvement.rb', line 4 def initialize(label, io: $stdout) @label = label @io = io end |
Instance Method Details
#print(removed) ⇒ Object
9 10 11 12 13 |
# File 'lib/hashira/ci/improvement.rb', line 9 def print(removed) return if removed.empty? @io.puts("#{@label} (improvement!): #{removed.join(", ")}") @io.puts("Lock it in: hashira --update-baseline") end |