Module: IsoDoc::Generic::Utils
Instance Method Summary collapse
Instance Method Details
#baselocation(loc) ⇒ Object
12 13 14 15 16 |
# File 'lib/isodoc/generic/utils.rb', line 12 def baselocation(loc) loc.nil? and return nil loc.empty? and return "" loc end |
#configuration ⇒ Object
4 5 6 |
# File 'lib/isodoc/generic/utils.rb', line 4 def configuration Metanorma::Generic.configuration end |
#fileloc(loc) ⇒ Object
8 9 10 |
# File 'lib/isodoc/generic/utils.rb', line 8 def fileloc(loc) File.join(File.dirname(__FILE__), loc) end |