Sha256: e9a08cc7b268a70c6a134333c24071a7ffdc6f1aacc7b2ee9dc9126176f2737e
Contents?: true
Size: 628 Bytes
Versions: 6
Compression:
Stored size: 628 Bytes
Contents
# frozen_string_literal: true require_relative './instructions' class ActiveSet module Processor class Base attr_reader :set, :instructions, :adapters def self.register_adapter(adapter, precedence = 0) @adapters ||= [] @adapters.insert(precedence, adapter) end def initialize(set, instructions) @set = set @instructions = Instructions.new(validate_instructions(instructions)) @adapters = self.class.instance_variable_get(:@adapters) end private def validate_instructions(instructions) instructions end end end end
Version data entries
6 entries across 6 versions & 1 rubygems