class ActionDispatch::Journey::Formatter::RouteWithParams

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

# sig/action_dispatch/journey/formatter.rbs

class ActionDispatch::Journey::Formatter::RouteWithParams
  def initialize: (ActionDispatch::Journey::Route route, Hash parameterized_parts, Hash params) -> void
  def path: (Symbol _) -> String
end

def initialize(route, parameterized_parts, params)

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

type ActionDispatch__Journey__Formatter__RouteWithParams_initialize_parameterized_parts = gem | String | version | String | class | String | gem | String | version | String | id | String | gem | String | version | String | class | String | name | String | gem | String | version | String | file | String | gem | String | version | String | module | String | gem | String | version | String | guide | String | gem | String | version | String | id | String | gem | String | version | String | class_id | String | id | String | gem | String | format | String

def initialize: (ActionDispatch::Journey::Route route, ActionDispatch__Journey__Formatter__RouteWithParams_initialize_parameterized_parts parameterized_parts, ( | via_view | String) params) -> void

This signature was generated using 64 samples from 2 applications.

def initialize(route, parameterized_parts, params)
  @route = route
  @parameterized_parts = parameterized_parts
  @params = params
end

def path(_)

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

def path: (Symbol _) -> String

This signature was generated using 83 samples from 2 applications.

def path(_)
  @route.format(@parameterized_parts)
end