class NetSample::NIC

Defined in:

net_sample/nic.cr
net_sample/nic/info.cr
net_sample/nic/linux/gnu.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(name : String) #

[View source]

Class Method Detail

def self.[](if_name) #

[View source]
def self.[]?(if_name) #

[View source]
def self.each(&) #

[View source]
def self.hwaddr_of(if_name) #

[View source]
def self.ifnames #

[View source]
def self.in6addr_of(if_name) #

[View source]
def self.inaddr_of(if_name) #

[View source]
def self.nics #

[View source]

Instance Method Detail

def hwaddr #

[View source]
def hwaddr=(hwaddr : Bytes | Nil) #

[View source]
def in6addr : String | Nil #

[View source]
def in6addr=(in6addr : String | Nil) #

[View source]
def inaddr : String | Nil #

[View source]
def inaddr=(inaddr : String | Nil) #

[View source]
def to_s(io : IO) #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

[View source]