Method: LinuxStat::Battery.technology
- Defined in:
- lib/linux_stat/battery.rb
.technology ⇒ Object
Returns the technology of the battery.
If the battery is not present or the information is not available, it will return an empty String.
59 60 61 62 63 |
# File 'lib/linux_stat/battery.rb', line 59 def technology @@technology_file ||= File.join(PATH, 'technology') return ''.freeze unless tech_readable? IO.read(@@technology_file).tap(&:strip!) end |