Sha256: bfd57e30583d73e9c9332f2fa30084421b77688422ed78099c2d8cbdd4186271
Contents?: true
Size: 441 Bytes
Versions: 1
Compression:
Stored size: 441 Bytes
Contents
# frozen_string_literal: true require 'pio/arp/format' require 'pio/arp/reply' require 'pio/arp/request' require 'pio/parse_error' module Pio # ARP parser and generator. class Arp def self.read(raw_data) format = Format.read(raw_data) { Request.operation => Request, Reply.operation => Reply }.fetch(format.operation).create(format) rescue raise Pio::ParseError, $ERROR_INFO.message end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pio-0.30.2 | lib/pio/arp.rb |