Sha256: 4273ca60bf8648fbc89b97884757afb71c90d04cefdcc872ad47f9fcdd9e2e1b

Contents?: true

Size: 475 Bytes

Versions: 3

Compression:

Stored size: 475 Bytes

Contents

module IsoDoc
  module Generic
    module Utils
      def configuration
        Metanorma::Generic.configuration
      end

      def fileloc(loc)
        File.join(File.dirname(__FILE__), loc)
      end

       def baselocation(loc)
        return nil if loc.nil?
        f = defined?(self.class::_file) ? (self.class::_file || __FILE__) :
          __FILE__
        File.expand_path(File.join(
          File.dirname(f), "..", "..", "..", loc))
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
metanorma-generic-1.7.2 lib/isodoc/generic/utils.rb
metanorma-generic-1.7.1 lib/isodoc/generic/utils.rb
metanorma-generic-1.7.0 lib/isodoc/generic/utils.rb