Sha256: c94ce6c4f58c440da025629641b6948a5768246a44d710c02eecc7da2666b330

Contents?: true

Size: 525 Bytes

Versions: 33

Compression:

Stored size: 525 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 = 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

33 entries across 33 versions & 1 rubygems

Version Path
metanorma-generic-2.4.1 lib/isodoc/generic/utils.rb
metanorma-generic-2.4.0 lib/isodoc/generic/utils.rb
metanorma-generic-2.3.1 lib/isodoc/generic/utils.rb
metanorma-generic-2.3.0 lib/isodoc/generic/utils.rb
metanorma-generic-2.2.5 lib/isodoc/generic/utils.rb
metanorma-generic-2.2.4 lib/isodoc/generic/utils.rb
metanorma-generic-2.2.3 lib/isodoc/generic/utils.rb
metanorma-generic-2.2.2 lib/isodoc/generic/utils.rb
metanorma-generic-2.2.1.1 lib/isodoc/generic/utils.rb
metanorma-generic-2.2.1 lib/isodoc/generic/utils.rb
metanorma-generic-2.2.0 lib/isodoc/generic/utils.rb
metanorma-generic-2.1.3 lib/isodoc/generic/utils.rb
metanorma-generic-2.1.2 lib/isodoc/generic/utils.rb
metanorma-generic-2.1.1 lib/isodoc/generic/utils.rb
metanorma-generic-2.1.0 lib/isodoc/generic/utils.rb
metanorma-generic-2.0.4 lib/isodoc/generic/utils.rb
metanorma-generic-2.0.3 lib/isodoc/generic/utils.rb
metanorma-generic-2.0.2 lib/isodoc/generic/utils.rb
metanorma-generic-2.0.1 lib/isodoc/generic/utils.rb
metanorma-generic-2.0.0 lib/isodoc/generic/utils.rb