Class: Varar::Core::ResolvedSteps

Inherits:
Data
  • Object
show all
Defined in:
lib/varar/core/matcher.rb

Overview

Tagged result of resolve_hits: kind "ok" (steps) or "ambiguous" (collisions).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kind:, steps: [], collisions: []) ⇒ ResolvedSteps

Returns a new instance of ResolvedSteps.



19
20
21
# File 'lib/varar/core/matcher.rb', line 19

def initialize(kind:, steps: [], collisions: [])
  super
end

Instance Attribute Details

#collisionsObject (readonly)

Returns the value of attribute collisions

Returns:

  • (Object)

    the current value of collisions



18
19
20
# File 'lib/varar/core/matcher.rb', line 18

def collisions
  @collisions
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



18
19
20
# File 'lib/varar/core/matcher.rb', line 18

def kind
  @kind
end

#stepsObject (readonly)

Returns the value of attribute steps

Returns:

  • (Object)

    the current value of steps



18
19
20
# File 'lib/varar/core/matcher.rb', line 18

def steps
  @steps
end