hostname.cr v0.1.1
hostname.cr
Encapsulates hostnames making them more convenient.
Installation
Add this to your application's shard.yml
:
dependencies:
hostname:
github: chris-huxtable/hostname.cr
Usage
require "hostname"
Some samples:
hostname0 = Hostname["example.com"]
hostname1 = Hostname["example.com"]?
hostname2 = Hostname.new("example.com")
hostname3 = Hostname.new?("example.com")
an_address = hostname0.address?()
adresses = hostname0.addresses()
hostname0.each_address() { |address|
puts address
}
Contributing
- Fork it ( https://github.com/chris-huxtable/hostname.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- Chris Huxtable - creator, maintainer
Repository
hostname.cr
Owner
Statistic
- 2
- 1
- 0
- 1
- 1
- over 3 years ago
- May 2, 2018
License
ISC License
Links
Synced at
Thu, 07 Nov 2024 17:54:35 GMT
Languages