Class: UPowerDataSource::Boolean
- Inherits:
-
Object
- Object
- UPowerDataSource::Boolean
- Defined in:
- lib/battery/upower_data_source.rb
Class Method Summary collapse
Class Method Details
.parse(s) ⇒ Object
94 95 96 97 98 |
# File 'lib/battery/upower_data_source.rb', line 94 def self.parse( s ) return true if s == 'yes' return false if s == 'no' nil end |