Class: Journey::Visitors::Formatter
- Defined in:
- lib/journey/visitors.rb
Overview
Used for formatting urls (url_for)
Constant Summary
Constants inherited from Visitor
Instance Attribute Summary collapse
-
#consumed ⇒ Object
readonly
Returns the value of attribute consumed.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options) ⇒ Formatter
constructor
A new instance of Formatter.
Methods inherited from Visitor
Constructor Details
#initialize(options) ⇒ Formatter
Returns a new instance of Formatter.
85 86 87 88 |
# File 'lib/journey/visitors.rb', line 85 def initialize @options = @consumed = {} end |
Instance Attribute Details
#consumed ⇒ Object (readonly)
Returns the value of attribute consumed.
83 84 85 |
# File 'lib/journey/visitors.rb', line 83 def consumed @consumed end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
83 84 85 |
# File 'lib/journey/visitors.rb', line 83 def @options end |