Skip to content

Commit

Permalink
Make sure unix is first in the list, it's the most common and we don'…
Browse files Browse the repository at this point in the history
…t want to waste resources parsing crap like "rumpus" every time.
  • Loading branch information
Danial Pearce committed Nov 22, 2010
1 parent 77ff046 commit f649e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/net/ftp/list/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def self.with_each_parser(&blk) #:yields: parser

# Automatically add an inheriting parser to the list of known parsers.
def self.inherited(klass) #:nodoc:
@@parsers.unshift(klass)
@@parsers.push(klass)
end

# The main parse method. Return false from it if parsing fails (this is cheaper than raising an exception)
Expand Down

0 comments on commit f649e8c

Please sign in to comment.