Sha256: b566f66ceb0e54dcc82abf5723074d754b2e174bceebef17a03015226d469981
Contents?: true
Size: 524 Bytes
Versions: 20
Compression:
Stored size: 524 Bytes
Contents
require 'distil/configurable/interpolated' module Distil class ProjectPath < Interpolated def self.value_of(value, owner) return value if !owner value= super(value, owner) return value if 0==value.index(File::SEPARATOR) return value if !owner.is_a?(Configurable) path= owner.get_option("path") return value if !path || path.empty? return value if value!=path && 0==value.index(path) File.join(path, value) end end end
Version data entries
20 entries across 20 versions & 1 rubygems