Class: Stupidedi::Builder::ConstraintTable::Stub

Inherits:
Stupidedi::Builder::ConstraintTable show all
Defined in:
lib/stupidedi/builder/constraint_table.rb

Overview

Performs no filtering of the Instruction list. This is used when there already is a single Instruction or when a Reader::SegmentTok doesn’t provide any more information to filter the list.

Instance Method Summary collapse

Methods inherited from Stupidedi::Builder::ConstraintTable

build

Constructor Details

#initialize(instructions) ⇒ Stub

Returns a new instance of Stub.



31
32
33
# File 'lib/stupidedi/builder/constraint_table.rb', line 31

def initialize(instructions)
  @instructions = instructions
end

Instance Method Details

#matches(segment_tok, strict) ⇒ Array<Instruction>

Returns:



36
37
38
# File 'lib/stupidedi/builder/constraint_table.rb', line 36

def matches(segment_tok, strict)
  @instructions
end