Class: Net::FTP::List::Unknown
- Inherits:
-
Parser
- Object
- Parser
- Net::FTP::List::Unknown
- Defined in:
- lib/net/ftp/list/unknown.rb
Overview
If all other attempts to parse the entry fail this is the parser that is going to be used. It might be a good idea to fail loudly.
Class Method Summary collapse
Class Method Details
.parse(raw) ⇒ Object
6 7 8 9 10 |
# File 'lib/net/ftp/list/unknown.rb', line 6 def self.parse(raw, **) raise Net::FTP::List::ParseError, "Could not parse #{raw} since none of the parsers was up to the task" if Net::FTP::List.raise_on_failed_server_detection emit_entry(raw) end |