class Middleman::PreviewServer::NetworkInterfaceInventory
This holds information about local network interfaces on the user systemd
def initialize
def initialize @types = [] @types << Ipv4 @types << Ipv6 @types << All end
def network_interfaces(type=:all)
-
type
(Symbol
) --
def network_interfaces(type=:all) types.find { |t| t.match? type.to_sym }.new.network_interfaces end