Permalink
Browse files

pathname.rb: remove implementation-dependent details

  • Loading branch information...
quix committed Aug 9, 2009
1 parent d1d4801 commit 860481604438f3f8b8de44b7e18d0353c0a6f1ce
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/quix/ext/pathname.rb
View
@@ -17,8 +17,9 @@ def stem
end
def explode
- to_s.split(SEPARATOR_PAT).map { |path|
- self.class.new path
+ # initialize() enforces forward slashes
+ to_s.split('/').map { |path|
+ self.class.new(path)
}
end

0 comments on commit 8604816

Please sign in to comment.