class ActionDispatch::Journey::Visitors::FormatBuilder
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/action_dispatch/journey/visitors.rbs class ActionDispatch::Journey::Visitors::FormatBuilder < ActionDispatch::Journey::Visitors::Visitor def binary: (ActionDispatch::Journey::Nodes::Cat node) -> untyped def terminal: (ActionDispatch::Journey::Nodes::Slash node) -> untyped def visit_GROUP: (ActionDispatch::Journey::Nodes::Group n) -> untyped def visit_SYMBOL: (ActionDispatch::Journey::Nodes::Symbol n) -> untyped end
:nodoc:
def accept(node); Journey::Format.new(super); end
def accept(node); Journey::Format.new(super); end
def binary(node)
Experimental RBS support (using type sampling data from the type_fusion
project).
def binary: (ActionDispatch::Journey::Nodes::Cat node) -> untyped
This signature was generated using 3 samples from 1 application.
def binary(node) visit(node.left) + visit(node.right) end
def terminal(node); [node.left]; end
Experimental RBS support (using type sampling data from the type_fusion
project).
def terminal: (ActionDispatch::Journey::Nodes::Slash node) -> untyped
This signature was generated using 1 sample from 1 application.
def terminal(node); [node.left]; end
def visit_GROUP(n); [Journey::Format.new(unary(n))]; end
Experimental RBS support (using type sampling data from the type_fusion
project).
def visit_GROUP: (ActionDispatch::Journey::Nodes::Group n) -> untyped
This signature was generated using 2 samples from 1 application.
def visit_GROUP(n); [Journey::Format.new(unary(n))]; end
def visit_STAR(n)
def visit_STAR(n) [Journey::Format.required_path(n.left.to_sym)] end
def visit_SYMBOL(n)
Experimental RBS support (using type sampling data from the type_fusion
project).
def visit_SYMBOL: (ActionDispatch::Journey::Nodes::Symbol n) -> untyped
This signature was generated using 2 samples from 1 application.
def visit_SYMBOL(n) symbol = n.to_sym if symbol == :controller [Journey::Format.required_path(symbol)] else [Journey::Format.required_segment(symbol)] end end