class ProgressBar::Format::Molecule

Constants

BAR_MOLECULES
MOLECULES

Attributes

key[R]
method_arguments[R]
method_name[R]

Public Class Methods

new(letter) click to toggle source
# File lib/progress_bar/format/molecule.rb, line 27
def initialize(letter)
  @key                                          = letter
  @description, @method_name, @method_arguments = MOLECULES.fetch(@key.to_sym)
end

Public Instance Methods

bar_molecule?() click to toggle source
# File lib/progress_bar/format/molecule.rb, line 32
def bar_molecule?
  BAR_MOLECULES.include? @key
end