123456789_123456789_123456789_123456789_123456789_

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

Relationships & Source Files
Inherits: Struct
  • ::Object
Defined in: actionpack/lib/action_dispatch/journey/visitors.rb

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#escaper (rw)

[ GitHub ]

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

class Parameter < Struct.new(:name, :escaper)

#name (rw)

[ GitHub ]

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

class Parameter < Struct.new(:name, :escaper)

Instance Method Details

#escape(value)

[ GitHub ]

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

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