method

as_json

as_json(options = nil)
public

No documentation available.

# File actionpack/lib/action_dispatch/journey/gtg/transition_table.rb, line 60
        def as_json(options = nil)
          simple_regexp = Hash.new { |h, k| h[k] = {} }

          @regexp_states.each do |from, hash|
            hash.each do |re, to|
              simple_regexp[from][re.source] = to
            end
          end

          {
            regexp_states: simple_regexp,
            string_states: @string_states,
            accepting:     @accepting
          }
        end