FilteredHash

Constants

  • VALID_SYMBOL_INSTRUCTIONS
  • VALID_HASH_INSTRUCTIONS
  • VALID_INSTRUCTIONS_TYPES

Methods

#base

Returns the value of attribute base

def base
  @base
end

#filtered_base

def filtered_base
  case instructions
  when Symbol
    filtered_base_by_symbol
  when Hash
    filtered_base_by_hash
  end
end

#initialize

def initialize(base, instructions)
  @base = base
  @instructions = instructions
  @instructions_type = instructions.class
  validate_instructions!(instructions)
end
#instructions

Returns the value of attribute instructions

def instructions
  @instructions
end
#instructions_type

Returns the value of attribute instructions_type

def instructions_type
  @instructions_type
end