Permalink
Browse files

access `@path` and `@routes` via reader methods in journey

  • Loading branch information...
1 parent 411de5a commit ae1f86fab5f80d00dc75541aef04eea8a349fb97 @goshakkk goshakkk committed Jan 7, 2013
@@ -45,7 +45,7 @@ def requirements # :nodoc:
end
def segments
- @path.names
+ path.names
end
def required_keys
@@ -16,12 +16,12 @@ def initialize
end
def length
- @routes.length
+ routes.length
end
alias :size :length
def last
- @routes.last
+ routes.last
end
def each(&block)

0 comments on commit ae1f86f

Please sign in to comment.