Class: Bluemoon::Bluetooth
- Inherits:
-
Object
- Object
- Bluemoon::Bluetooth
- Defined in:
- lib/bluemoon/bluetooth.rb
Class Method Summary collapse
Class Method Details
.off ⇒ Object
3 4 5 |
# File 'lib/bluemoon/bluetooth.rb', line 3 def self.off power(0) end |
.on ⇒ Object
7 8 9 |
# File 'lib/bluemoon/bluetooth.rb', line 7 def self.on power(1) end |
.power(flag) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/bluemoon/bluetooth.rb', line 11 def self.power(flag) unless `blueutil power`.to_i == flag.to_i `blueutil power #{flag}` true end end |