Sha256: 71295d6d90e7b8ff038d29a06082f2f1a4e17c6da72d4f8215bc56c15ba6037c

Contents?: true

Size: 222 Bytes

Versions: 30

Compression:

Stored size: 222 Bytes

Contents

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

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

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
relaton-1.7.pre7 lib/relaton/util.rb
relaton-1.7.6 lib/relaton/util.rb
relaton-1.7.5 lib/relaton/util.rb
relaton-1.7.4 lib/relaton/util.rb
relaton-1.7.3 lib/relaton/util.rb
relaton-1.7.2 lib/relaton/util.rb
relaton-1.7.1 lib/relaton/util.rb
relaton-1.7.0 lib/relaton/util.rb
relaton-1.6.0 lib/relaton/util.rb
relaton-1.6.pre1 lib/relaton/util.rb
relaton-1.5.0 lib/relaton/util.rb
relaton-1.5.pre lib/relaton/util.rb
relaton-1.4.1 lib/relaton/util.rb
relaton-1.4.0 lib/relaton/util.rb
relaton-1.3.0 lib/relaton/util.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/relaton-1.2.0/lib/relaton/util.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/relaton-1.2.0/lib/relaton/util.rb
relaton-1.2.0 lib/relaton/util.rb
relaton-1.1.0 lib/relaton/util.rb
relaton-1.0.3 lib/relaton/util.rb