module Milight::Util
Public Class Methods
broadcast_addr()
click to toggle source
# 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()
click to toggle source
# File lib/milight/util.rb, line 3 def self.current_ipaddr matched = /inet\ addr:([0-9\.]*)/.match wlan_config matched[1] if matched end
Private Class Methods
wlan_config()
click to toggle source
TODO: modularize for env/os.
# File lib/milight/util.rb, line 16 def self.wlan_config %x[LANG=C ifconfig wlan] end