Module: Packs::Logging
- Extended by:
- T::Sig
- Defined in:
- lib/packs/logging.rb
Class Method Summary collapse
- .out(str) ⇒ Object
- .print(text) ⇒ Object
- .print_bold_green(text) ⇒ Object
- .print_divider ⇒ Object
- .section(title, &block) ⇒ Object
Class Method Details
.out(str) ⇒ Object
33 34 35 |
# File 'lib/packs/logging.rb', line 33 def self.out(str) puts str end |
.print(text) ⇒ Object
23 24 25 |
# File 'lib/packs/logging.rb', line 23 def self.print(text) out text end |
.print_bold_green(text) ⇒ Object
18 19 20 |
# File 'lib/packs/logging.rb', line 18 def self.print_bold_green(text) out Rainbow(text).green.bold end |
.print_divider ⇒ Object
28 29 30 |
# File 'lib/packs/logging.rb', line 28 def self.print_divider out '=' * 100 end |
.section(title, &block) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/packs/logging.rb', line 10 def self.section(title, &block) print_divider out Rainbow(title).green.bold out "\n" yield end |