Sha256: c4819a2f8990d93049b6de6277aa29d5f366f246a8b360851692083a9463e99a
Contents?: true
Size: 588 Bytes
Versions: 1
Compression:
Stored size: 588 Bytes
Contents
# frozen_string_literal: true module HowIs ## # Helper class for printing text, but hiding it when e.g. running in CI. class Text def self.show_default_output @show_default_output = true unless instance_variable_defined?(:"@show_default_output") @show_default_output end def self.show_default_output=(val) @show_default_output = val end def self.print(*args) Kernel.print(*args) if HowIs::Text.show_default_output end def self.puts(*args) Kernel.puts(*args) if HowIs::Text.show_default_output end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
how_is-25.0.0 | lib/how_is/text.rb |