Class: Proximity::Proxy
- Inherits:
-
Object
- Object
- Proximity::Proxy
- Defined in:
- lib/proximity/proxy.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#source ⇒ Object
Returns the value of attribute source.
-
#target ⇒ Object
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(route_set) ⇒ Proxy
constructor
A new instance of Proxy.
- #inspect ⇒ Object
- #pattern ⇒ Object
Constructor Details
#initialize(route_set) ⇒ Proxy
Returns a new instance of Proxy.
5 6 7 |
# File 'lib/proximity/proxy.rb', line 5 def initialize(route_set) @route_set = route_set end |
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
3 4 5 |
# File 'lib/proximity/proxy.rb', line 3 def format @format end |
#source ⇒ Object
Returns the value of attribute source.
3 4 5 |
# File 'lib/proximity/proxy.rb', line 3 def source @source end |
#target ⇒ Object
Returns the value of attribute target.
3 4 5 |
# File 'lib/proximity/proxy.rb', line 3 def target @target end |
Instance Method Details
#inspect ⇒ Object
21 22 23 |
# File 'lib/proximity/proxy.rb', line 21 def inspect "#<#{self.class.name} target=#{target} source=#{source}>" end |
#pattern ⇒ Object
17 18 19 |
# File 'lib/proximity/proxy.rb', line 17 def pattern Proximity.pathPatternClass.new(source) end |