Class: ActionDispatch::Journey::Visitors::Formatter

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

Overview

Used for formatting urls (url_for)

Constant Summary

Constants inherited from Visitor

Visitor::DISPATCH_CACHE

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Visitor

#accept

Constructor Details

#initialize(options) ⇒ Formatter

Returns a new instance of Formatter


89
90
91
92
# File 'actionpack/lib/action_dispatch/journey/visitors.rb', line 89

def initialize(options)
  @options  = options
  @consumed = {}
end

Instance Attribute Details

#consumedObject (readonly)

:nodoc:


87
88
89
# File 'actionpack/lib/action_dispatch/journey/visitors.rb', line 87

def consumed
  @consumed
end

#optionsObject (readonly)

:nodoc:


87
88
89
# File 'actionpack/lib/action_dispatch/journey/visitors.rb', line 87

def options
  @options
end