Class: Journey::Visitors::Formatter

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

Overview

Used for formatting urls (url_for)

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Visitor

#accept

Constructor Details

#initialize(options) ⇒ Formatter

Returns a new instance of Formatter.



81
82
83
84
# File 'lib/journey/visitors.rb', line 81

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

Instance Attribute Details

#consumedObject (readonly)

Returns the value of attribute consumed.



79
80
81
# File 'lib/journey/visitors.rb', line 79

def consumed
  @consumed
end

#optionsObject (readonly)

Returns the value of attribute options.



79
80
81
# File 'lib/journey/visitors.rb', line 79

def options
  @options
end