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.
6 7 8 9 |
# File 'lib/hashira/ci/improvement.rb', line 6 def initialize(label, io: $stdout) @label = label @io = io end |
Instance Method Details
#print(removed) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/hashira/ci/improvement.rb', line 11 def print(removed) return if removed.empty? @io.puts "#{@label} (improvement!): #{removed.join(", ")}" @io.puts "Lock it in: hashira --update-baseline" end |