Method: LinuxStat::Battery.present?
- Defined in:
- lib/linux_stat/battery.rb
.present? ⇒ Boolean
Returns true or false based on the presence of the battery.
10 11 12 |
# File 'lib/linux_stat/battery.rb', line 10 def present? @@present ||= Dir.exist?(PATH) end |