Sha256: 9d227937b7b2c3118193adbf9e94765ac62c9e92d1ac63c8f5c5fc518e1ac908

Contents?: true

Size: 452 Bytes

Versions: 12

Compression:

Stored size: 452 Bytes

Contents

require 'net/ftp/list/parser'

# 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 Net::FTP::List::Unknown < Net::FTP::List::Parser
  def self.parse(raw)
    if Net::FTP::List.raise_on_failed_server_detection
      raise Net::FTP::List::ParseError, "Could not parse #{raw} since none of the parsers was up to the task"
    end

    emit_entry(raw, {})
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
net-ftp-list-3.2.11 lib/net/ftp/list/unknown.rb
net-ftp-list-3.2.10 lib/net/ftp/list/unknown.rb
net-ftp-list-3.2.9 lib/net/ftp/list/unknown.rb
net-ftp-list-3.2.8 lib/net/ftp/list/unknown.rb
net-ftp-list-3.2.7 lib/net/ftp/list/unknown.rb
net-ftp-list-3.2.6 lib/net/ftp/list/unknown.rb
net-ftp-list-3.2.5 lib/net/ftp/list/unknown.rb
net-ftp-list-3.2.4 lib/net/ftp/list/unknown.rb
net-ftp-list-3.2.3 lib/net/ftp/list/unknown.rb
net-ftp-list-3.2.2 lib/net/ftp/list/unknown.rb
net-ftp-list-3.2.1 lib/net/ftp/list/unknown.rb
net-ftp-list-3.2.0 lib/net/ftp/list/unknown.rb