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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#escaperObject

Returns the value of attribute escaper

Returns:

  • (Object)

    the current value of escaper



12
13
14
# File 'lib/action_dispatch/journey/visitors.rb', line 12

def escaper
  @escaper
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



12
13
14
# File 'lib/action_dispatch/journey/visitors.rb', line 12

def name
  @name
end

Instance Method Details

#escape(value) ⇒ Object



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

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