Method: IsoDoc::Convert#localpath
- Defined in:
- lib/isodoc/css.rb
#localpath(path) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/isodoc/css.rb', line 19 def localpath(path) return path if %r{^[A-Z]:|^/|^file:/}.match?(path) return path unless (@sourcedir || @localdir) && path File.(File.join((@sourcedir || @localdir), path)) end |