Permalink
Browse files

Merge pull request #8799 from goshakkk/ivar-readers

Access ivars via instance reader methods for consistency
  • Loading branch information...
2 parents 411de5a + ae1f86f commit e274db9edc31536510eef42ad61f170bd2787e13 @steveklabnik steveklabnik 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 e274db9

Please sign in to comment.