Class: SimpleCov::Baseline::Floor

Inherits:
Data
  • Object
show all
Defined in:
lib/simplecov/baseline.rb,
sig/simplecov.rbs

Overview

missed is nil for a hand-written percent-only entry, meaning the dampener is absent and the percent alone decides.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFloor

Returns a new instance of Floor.

Parameters:

  • percent: (Numeric)
  • missed: (Integer, nil)


1502
# File 'sig/simplecov.rbs', line 1502

def initialize: (percent: Numeric, missed: Integer?) -> void

Instance Attribute Details

#missedObject (readonly)

Returns the value of attribute missed

Returns:

  • (Object)

    the current value of missed



33
34
35
# File 'lib/simplecov/baseline.rb', line 33

def missed
  @missed
end

#percentObject (readonly)

Returns the value of attribute percent

Returns:

  • (Object)

    the current value of percent



33
34
35
# File 'lib/simplecov/baseline.rb', line 33

def percent
  @percent
end