Class: ActionDispatch::Journey::Format::Parameter

Inherits:
Struct show all
Defined in:
actionpack/lib/action_dispatch/journey/visitors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Struct

#as_json, #to_h

Instance Attribute Details

#escaperObject

Returns the value of attribute escaper


9
10
11
# File 'actionpack/lib/action_dispatch/journey/visitors.rb', line 9

def escaper
  @escaper
end

#nameObject

Returns the value of attribute name


9
10
11
# File 'actionpack/lib/action_dispatch/journey/visitors.rb', line 9

def name
  @name
end

Instance Method Details

#escape(value) ⇒ Object


10
# File 'actionpack/lib/action_dispatch/journey/visitors.rb', line 10

def escape(value); escaper.call value; end