Method: Lib::BOOTP::Packet::IPAddress.unpack
- Defined in:
- lib/lib/bootp/packet/ip_address.rb
.unpack(ip) ⇒ Object
18 19 20 |
# File 'lib/lib/bootp/packet/ip_address.rb', line 18 def self.unpack(ip) new ip.to_s.unpack('N').first.to_i end |