Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
hosts
v0.2.0
Hosts
Host
Built with Crystal 1.9.2
2023-10-08 13:44:20 UTC
class
Hosts
Hosts
Reference
Object
Defined in:
hosts.cr
Constructors
.new
(path =
"/etc/hosts"
)
Instance Method Summary
#[]
(key : String)
#[]?
(key : String)
#addr?
(key : String)
#name?
(key : String)
Constructor Detail
def self.
new
(path =
"/etc/hosts"
)
#
[
View source
]
Instance Method Detail
def
[]
(key : String)
#
[
View source
]
def
[]?
(key : String)
#
[
View source
]
def
addr?
(key : String)
#
[
View source
]
def
name?
(key : String)
#
[
View source
]