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.


33
34
35
# File 'lib/stupidedi/builder/constraint_table.rb', line 33

def initialize(instructions)
  @instructions = instructions
end

Instance Method Details

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

Returns:


38
39
40
# File 'lib/stupidedi/builder/constraint_table.rb', line 38

def matches(segment_tok, strict)
  @instructions
end