class ActionDispatch::Journey::GTG::TransitionTable

def []=(from, to, sym)

Experimental RBS support (using type sampling data from the type_fusion project).

def []=: (Integer from, Integer to, Regexp sym) -> Integer

This signature was generated using 1 sample from 1 application.

def []=(from, to, sym)
  to_mappings = states_hash_for(sym)[from] ||= {}
  case sym
  when Regexp
    # we must match the whole string to a token boundary
    if sym == DEFAULT_EXP
      sym = DEFAULT_EXP_ANCHORED
    else
      sym = /\A#{sym}\Z/
    end
  when Symbol
    # account for symbols in the constraints the same as strings
    sym = sym.to_s
  end
  to_mappings[sym] = to
end