Sha256: 93095e51519c37e015ed0077a65c051789d55d2684de9cee95c2b76c95a57151
Contents?: true
Size: 366 Bytes
Versions: 2
Compression:
Stored size: 366 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 if type == :fatal exit(1) end end def self.source2dest_filename(name) name.sub(%r{^(\./)?(\.\./)+}, "") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
metanorma-1.3.4 | lib/metanorma/util.rb |
metanorma-1.3.3 | lib/metanorma/util.rb |