README.md in interfacez-1.0.2 vs README.md in interfacez-1.0.3
- old
+ new
@@ -9,18 +9,21 @@
```ruby
require 'interfacez'
Interfacez.default
-# => en0
+# => "en0"
Interfacez.loopback
-# => lo0
+# => "lo0"
Interfacez.all do |interface|
# do something with interface name
puts interface
end
+
+Interfacez.ipv4_address_of("en0")
+# => "192.168.1.2"
```
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).