Class: Orbit::Routing::Route

Inherits:
Object
  • Object
show all
Defined in:
lib/orbit/routing/route.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Route

Returns a new instance of Route.



6
7
8
# File 'lib/orbit/routing/route.rb', line 6

def initialize(path)
  @path = Config.path_class.new(path)
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



4
5
6
# File 'lib/orbit/routing/route.rb', line 4

def path
  @path
end