123456789_123456789_123456789_123456789_123456789_

Class: ActionDispatch::Journey::Formatter::RouteWithParams

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: actionpack/lib/action_dispatch/journey/formatter.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(route, parameterized_parts, params) ⇒ RouteWithParams

[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/journey/formatter.rb', line 23

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

Instance Attribute Details

#params (readonly)

[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/journey/formatter.rb', line 21

attr_reader :params

Instance Method Details

#path(_)

[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/journey/formatter.rb', line 29

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