class Bricolage::JobNet::JobRef

Public Class Methods

for_path(path) click to toggle source
# File lib/bricolage/jobnet.rb, line 391
def JobRef.for_path(path)
  new(path.parent.basename, JobRef.strip_exts(path), Location.dummy)
end
strip_exts(path) click to toggle source
# File lib/bricolage/jobnet.rb, line 395
def JobRef.strip_exts(path)
  basename = path
  # remove all extnames
  until (ext = basename.extname).empty?
    basename = basename.basename(ext)
  end
  basename
end

Public Instance Methods

net?() click to toggle source
# File lib/bricolage/jobnet.rb, line 404
def net?
  false
end