Sha256: 382e81887a2e23d265b2592018462b7e57ddbc895cd6bb0c12739c59f8995444

Contents?: true

Size: 226 Bytes

Versions: 25

Compression:

Stored size: 226 Bytes

Contents

module Metanorma
  module Util
    def self.log(message, type = :info)
      log_types = Metanorma.configuration.logs.map(&:to_s) || []

      if log_types.include?(type.to_s)
        puts(message)
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
metanorma-1.2.0 lib/metanorma/util.rb
metanorma-1.1.7 lib/metanorma/util.rb
metanorma-1.1.6 lib/metanorma/util.rb
metanorma-1.1.5 lib/metanorma/util.rb
metanorma-1.1.4 lib/metanorma/util.rb
metanorma-1.1.3 lib/metanorma/util.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/metanorma-1.1.2/lib/metanorma/util.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/metanorma-1.1.2/lib/metanorma/util.rb
metanorma-1.1.2 lib/metanorma/util.rb
metanorma-1.1.1 lib/metanorma/util.rb
metanorma-1.1.0 lib/metanorma/util.rb
metanorma-1.0.6 lib/metanorma/util.rb
metanorma-1.0.5 lib/metanorma/util.rb
metanorma-1.0.4 lib/metanorma/util.rb
metanorma-1.0.3 lib/metanorma/util.rb
metanorma-1.0.2 lib/metanorma/util.rb
metanorma-1.0.1 lib/metanorma/util.rb
metanorma-1.0.0 lib/metanorma/util.rb
metanorma-0.3.18 lib/metanorma/util.rb
metanorma-0.3.17 lib/metanorma/util.rb