Sha256: 3902a0eb38dd0e1532a9a1660af1f6df11e9b8d2e1b9ca43e04ced87563a539b
Contents?: true
Size: 672 Bytes
Versions: 6
Compression:
Stored size: 672 Bytes
Contents
class Socket < BasicSocket class Ifaddr < Data attr_reader :addr, :broadaddr, :dstaddr, :flags, :ifindex, :name, :netmask def initialize(addr: nil, broadaddr: nil, dstaddr: nil, flags: nil, ifindex: nil, name: nil, netmask: nil) @addr = addr @broadaddr = broadaddr @dstaddr = dstaddr @flags = flags @ifindex = ifindex @name = name @netmask = netmask end def inspect out = "#<Socket::Ifaddr #{name}" if addr out << " #{addr.inspect_sockaddr}" end if netmask out << " netmask=#{netmask.inspect_sockaddr}" end out + '>' end end end
Version data entries
6 entries across 6 versions & 1 rubygems