Class: Ibex::ErrorMessages::Update

Inherits:
Object
  • Object
show all
Defined in:
lib/ibex/error_messages.rb,
sig/ibex/error_messages.rbs

Overview

Deterministic update output and review classifications.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source:, uncovered:, unreachable:, moved:) ⇒ Update

Returns a new instance of Update.

RBS:

  • (source: String, uncovered: Array[String], unreachable: Array[String], moved: Array[String]) -> void

Parameters:

  • source: (String)
  • uncovered: (Array[String])
  • unreachable: (Array[String])
  • moved: (Array[String])


58
59
60
61
62
63
64
# File 'lib/ibex/error_messages.rb', line 58

def initialize(source:, uncovered:, unreachable:, moved:)
  @source = source.freeze
  @uncovered = uncovered.freeze
  @unreachable = unreachable.freeze
  @moved = moved.freeze
  freeze
end

Instance Attribute Details

#movedArray[String] (readonly)

Signature:

  • Array[String]

Returns:

  • (Array[String])


55
56
57
# File 'lib/ibex/error_messages.rb', line 55

def moved
  @moved
end

#sourceString (readonly)

Signature:

  • String

Returns:

  • (String)


52
53
54
# File 'lib/ibex/error_messages.rb', line 52

def source
  @source
end

#uncoveredArray[String] (readonly)

Signature:

  • Array[String]

Returns:

  • (Array[String])


53
54
55
# File 'lib/ibex/error_messages.rb', line 53

def uncovered
  @uncovered
end

#unreachableArray[String] (readonly)

Signature:

  • Array[String]

Returns:

  • (Array[String])


54
55
56
# File 'lib/ibex/error_messages.rb', line 54

def unreachable
  @unreachable
end