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.



29
30
31
# File 'lib/stupidedi/builder/constraint_table.rb', line 29

def initialize(instructions)
  @instructions = instructions
end

Instance Method Details

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

Returns:



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

def matches(segment_tok, strict)
  @instructions
end