Class: Distil::ProjectPath
- Inherits:
-
Interpolated
- Object
- Interpolated
- Distil::ProjectPath
- Defined in:
- lib/distil/configurable/project-path.rb
Class Method Summary collapse
Methods inherited from Interpolated
from_options, #initialize, #value_of
Constructor Details
This class inherits a constructor from Distil::Interpolated
Class Method Details
.value_of(value, owner) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/distil/configurable/project-path.rb', line 7 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 |