Module: Milight::Util
- Defined in:
- lib/milight/util.rb
Class Method Summary collapse
Class Method Details
.broadcast_addr ⇒ Object
8 9 10 11 |
# File 'lib/milight/util.rb', line 8 def self.broadcast_addr matched = /Bcast:([0-9\.]*)/.match wlan_config matched[1] if matched end |
.current_ipaddr ⇒ Object
3 4 5 6 |
# File 'lib/milight/util.rb', line 3 def self.current_ipaddr matched = /inet\ addr:([0-9\.]*)/.match wlan_config matched[1] if matched end |