Module: UsePacks::Logging

Extended by:
T::Sig
Defined in:
lib/use_packs/logging.rb

Class Method Summary collapse

Class Method Details

.out(str) ⇒ Object



33
34
35
# File 'lib/use_packs/logging.rb', line 33

def self.out(str)
  puts str
end


23
24
25
# File 'lib/use_packs/logging.rb', line 23

def self.print(text)
  out text
end


18
19
20
# File 'lib/use_packs/logging.rb', line 18

def self.print_bold_green(text)
  out ColorizedString.new(text).green.bold
end


28
29
30
# File 'lib/use_packs/logging.rb', line 28

def self.print_divider
  out '=' * 100
end

.section(title, &block) ⇒ Object



10
11
12
13
14
15
# File 'lib/use_packs/logging.rb', line 10

def self.section(title, &block)
  print_divider
  out ColorizedString.new(title).green.bold
  out "\n"
  yield
end