module Remap::State

Represents the current state of a mapping

Constants

Schema

Public Class Methods

call(value, mapper: Dummy, options: EMPTY_HASH) click to toggle source

Creates a valid state

@param value [Any] Internal state value

@option mapper [Mapper::Class] Mapper class @option options [Hash] Mapper options / arguments

@return [Hash] A valid state

# File lib/remap/state.rb, line 32
def self.call(value, mapper: Dummy, options: EMPTY_HASH)
  {
    fatal_ids: [],
    notices: [],
    path: [],
    options: options,
    ids: [],
    mapper: mapper,
    values: value,
    value: value,
    input: value
  }._
end