Class: PackageProtections::Private::Output

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/package_protections/private/output.rb

Class Method Summary collapse

Class Method Details

.p(str) ⇒ Object



11
12
13
# File 'lib/package_protections/private/output.rb', line 11

def self.p(str)
  puts str
end

.p_colorized(str, colorized:) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/package_protections/private/output.rb', line 16

def self.p_colorized(str, colorized:)
  if colorized
    p str.colorized_to_s
  else
    p str.to_s
  end
end