Sha256: 9639b836f7a9bbc2a84ea2c873594120cd72762dba5ef3dc05aa3ffb615d4aef

Contents?: true

Size: 619 Bytes

Versions: 17

Compression:

Stored size: 619 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?
        return "" if loc.empty?

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
metanorma-generic-2.7.2 lib/isodoc/generic/utils.rb
metanorma-generic-2.7.1 lib/isodoc/generic/utils.rb
metanorma-generic-2.7.0 lib/isodoc/generic/utils.rb
metanorma-generic-2.6.5 lib/isodoc/generic/utils.rb
metanorma-generic-2.6.4 lib/isodoc/generic/utils.rb
metanorma-generic-2.6.3 lib/isodoc/generic/utils.rb
metanorma-generic-2.6.2 lib/isodoc/generic/utils.rb
metanorma-generic-2.6.1 lib/isodoc/generic/utils.rb
metanorma-generic-2.6.0 lib/isodoc/generic/utils.rb
metanorma-generic-2.5.5 lib/isodoc/generic/utils.rb
metanorma-generic-2.5.4 lib/isodoc/generic/utils.rb
metanorma-generic-2.5.3 lib/isodoc/generic/utils.rb
metanorma-generic-2.5.2 lib/isodoc/generic/utils.rb
metanorma-generic-2.5.1 lib/isodoc/generic/utils.rb
metanorma-generic-2.5.0 lib/isodoc/generic/utils.rb
metanorma-generic-2.4.4 lib/isodoc/generic/utils.rb
metanorma-generic-2.4.2 lib/isodoc/generic/utils.rb