class Cbat

Defined in:

cbat.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(props : Properties) #

[View source]

Instance Method Detail

def create_bars #

Iterates over each battery, calculates the needed filling chars given the width.


[View source]
def display_data #

Iterates over each battery and checks the format string token by token for potencial substitutions signaled by a % symbol similar to GNU date, ex: date +"%D %H:%M" => 03/20/24 01:28


[View source]
def get_values #

[View source]
def list_batteries #

[View source]
def run #

[View source]