lib/action_dispatch/journey/nfa/dot.rb
# frozen_string_literal: true module ActionDispatch module Journey # :nodoc: module NFA # :nodoc: module Dot # :nodoc: def to_dot edges = transitions.map { |from, sym, to| " #{from} -> #{to} [label=\"#{sym || 'ε'}\"];" } <<-eodot digraph nfa { rankdir=LR; node [shape = doublecircle]; #{accepting_states.join ' '}; node [shape = circle]; #{edges.join "\n"} } eodot end end end end end
Source Files
- lib/abstract_controller.rb
- lib/abstract_controller/asset_paths.rb
- lib/abstract_controller/base.rb
- lib/abstract_controller/caching.rb
- lib/abstract_controller/caching/fragments.rb
- lib/abstract_controller/callbacks.rb
- lib/abstract_controller/collector.rb
- lib/abstract_controller/deprecator.rb
- lib/abstract_controller/error.rb
- lib/abstract_controller/helpers.rb
- lib/abstract_controller/logger.rb
- lib/abstract_controller/railties/routes_helpers.rb
- lib/abstract_controller/rendering.rb
- lib/abstract_controller/translation.rb
- lib/abstract_controller/url_for.rb
- lib/action_controller.rb
- lib/action_controller/api.rb
- lib/action_controller/api/api_rendering.rb
- lib/action_controller/base.rb
- lib/action_controller/caching.rb
- lib/action_controller/deprecator.rb
- lib/action_controller/form_builder.rb
- lib/action_controller/log_subscriber.rb
- lib/action_controller/metal.rb
- lib/action_controller/metal/basic_implicit_render.rb
- lib/action_controller/metal/conditional_get.rb
- lib/action_controller/metal/content_security_policy.rb
- lib/action_controller/metal/cookies.rb
- lib/action_controller/metal/data_streaming.rb
- lib/action_controller/metal/default_headers.rb
- lib/action_controller/metal/etag_with_flash.rb
- lib/action_controller/metal/etag_with_template_digest.rb
- lib/action_controller/metal/exceptions.rb
- lib/action_controller/metal/flash.rb
- lib/action_controller/metal/head.rb
- lib/action_controller/metal/helpers.rb
- lib/action_controller/metal/http_authentication.rb
- lib/action_controller/metal/implicit_render.rb
- lib/action_controller/metal/instrumentation.rb
- lib/action_controller/metal/live.rb
- lib/action_controller/metal/logging.rb
- lib/action_controller/metal/mime_responds.rb
- lib/action_controller/metal/parameter_encoding.rb
- lib/action_controller/metal/params_wrapper.rb
- lib/action_controller/metal/permissions_policy.rb
- lib/action_controller/metal/redirecting.rb
- lib/action_controller/metal/renderers.rb
- lib/action_controller/metal/rendering.rb
- lib/action_controller/metal/request_forgery_protection.rb
- lib/action_controller/metal/rescue.rb
- lib/action_controller/metal/streaming.rb
- lib/action_controller/metal/strong_parameters.rb
- lib/action_controller/metal/testing.rb
- lib/action_controller/metal/url_for.rb
- lib/action_controller/railtie.rb
- lib/action_controller/railties/helpers.rb
- lib/action_controller/renderer.rb
- lib/action_controller/template_assertions.rb
- lib/action_controller/test_case.rb
- lib/action_dispatch.rb
- lib/action_dispatch/constants.rb
- lib/action_dispatch/deprecator.rb
- lib/action_dispatch/http/cache.rb
- lib/action_dispatch/http/content_disposition.rb
- lib/action_dispatch/http/content_security_policy.rb
- lib/action_dispatch/http/filter_parameters.rb
- lib/action_dispatch/http/filter_redirect.rb
- lib/action_dispatch/http/headers.rb
- lib/action_dispatch/http/mime_negotiation.rb
- lib/action_dispatch/http/mime_type.rb
- lib/action_dispatch/http/mime_types.rb
- lib/action_dispatch/http/parameters.rb
- lib/action_dispatch/http/permissions_policy.rb
- lib/action_dispatch/http/rack_cache.rb
- lib/action_dispatch/http/request.rb
- lib/action_dispatch/http/response.rb
- lib/action_dispatch/http/upload.rb
- lib/action_dispatch/http/url.rb
- lib/action_dispatch/journey.rb
- lib/action_dispatch/journey/formatter.rb
- lib/action_dispatch/journey/gtg/builder.rb
- lib/action_dispatch/journey/gtg/simulator.rb
- lib/action_dispatch/journey/gtg/transition_table.rb
- lib/action_dispatch/journey/nfa/dot.rb
- lib/action_dispatch/journey/nodes/node.rb
- lib/action_dispatch/journey/parser.rb
- lib/action_dispatch/journey/parser_extras.rb
- lib/action_dispatch/journey/path/pattern.rb
- lib/action_dispatch/journey/route.rb
- lib/action_dispatch/journey/router.rb
- lib/action_dispatch/journey/router/utils.rb
- lib/action_dispatch/journey/routes.rb
- lib/action_dispatch/journey/scanner.rb
- lib/action_dispatch/journey/visitors.rb
- lib/action_dispatch/log_subscriber.rb
- lib/action_dispatch/middleware/actionable_exceptions.rb
- lib/action_dispatch/middleware/assume_ssl.rb
- lib/action_dispatch/middleware/callbacks.rb
- lib/action_dispatch/middleware/cookies.rb
- lib/action_dispatch/middleware/debug_exceptions.rb
- lib/action_dispatch/middleware/debug_locks.rb
- lib/action_dispatch/middleware/debug_view.rb
- lib/action_dispatch/middleware/exception_wrapper.rb
- lib/action_dispatch/middleware/executor.rb
- lib/action_dispatch/middleware/flash.rb
- lib/action_dispatch/middleware/host_authorization.rb
- lib/action_dispatch/middleware/public_exceptions.rb
- lib/action_dispatch/middleware/reloader.rb
- lib/action_dispatch/middleware/remote_ip.rb
- lib/action_dispatch/middleware/request_id.rb
- lib/action_dispatch/middleware/server_timing.rb
- lib/action_dispatch/middleware/session/abstract_store.rb
- lib/action_dispatch/middleware/session/cache_store.rb
- lib/action_dispatch/middleware/session/cookie_store.rb
- lib/action_dispatch/middleware/session/mem_cache_store.rb
- lib/action_dispatch/middleware/show_exceptions.rb
- lib/action_dispatch/middleware/ssl.rb
- lib/action_dispatch/middleware/stack.rb
- lib/action_dispatch/middleware/static.rb
- lib/action_dispatch/railtie.rb
- lib/action_dispatch/request/session.rb
- lib/action_dispatch/request/utils.rb
- lib/action_dispatch/routing.rb
- lib/action_dispatch/routing/endpoint.rb
- lib/action_dispatch/routing/inspector.rb
- lib/action_dispatch/routing/mapper.rb
- lib/action_dispatch/routing/polymorphic_routes.rb
- lib/action_dispatch/routing/redirection.rb
- lib/action_dispatch/routing/route_set.rb
- lib/action_dispatch/routing/routes_proxy.rb
- lib/action_dispatch/routing/url_for.rb
- lib/action_dispatch/system_test_case.rb
- lib/action_dispatch/system_testing/browser.rb
- lib/action_dispatch/system_testing/driver.rb
- lib/action_dispatch/system_testing/server.rb
- lib/action_dispatch/system_testing/test_helpers/screenshot_helper.rb
- lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
- lib/action_dispatch/testing/assertion_response.rb
- lib/action_dispatch/testing/assertions.rb
- lib/action_dispatch/testing/assertions/response.rb
- lib/action_dispatch/testing/assertions/routing.rb
- lib/action_dispatch/testing/integration.rb
- lib/action_dispatch/testing/request_encoder.rb
- lib/action_dispatch/testing/test_process.rb
- lib/action_dispatch/testing/test_request.rb
- lib/action_dispatch/testing/test_response.rb
- lib/action_pack.rb
- lib/action_pack/gem_version.rb
- lib/action_pack/version.rb