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

Version Path
distil-0.13.6 lib/distil/configurable/project-path.rb
distil-0.13.5 lib/distil/configurable/project-path.rb
distil-0.13.4 lib/distil/configurable/project-path.rb
distil-0.13.3 lib/distil/configurable/project-path.rb
distil-0.13.2 lib/distil/configurable/project-path.rb
distil-0.13.1 lib/distil/configurable/project-path.rb
distil-0.13.0 lib/distil/configurable/project-path.rb
distil-0.12.6 lib/distil/configurable/project-path.rb
distil-0.12.4 lib/distil/configurable/project-path.rb
distil-0.12.3 lib/distil/configurable/project-path.rb
distil-0.12.2 lib/distil/configurable/project-path.rb
distil-0.12.1 lib/distil/configurable/project-path.rb
distil-0.12.0 lib/distil/configurable/project-path.rb
distil-0.11.8 lib/distil/configurable/project-path.rb
distil-0.11.6 lib/distil/configurable/project-path.rb
distil-0.11.5 lib/distil/configurable/project-path.rb
distil-0.11.4 lib/distil/configurable/project-path.rb
distil-0.11.3 lib/distil/configurable/project-path.rb
distil-0.11.1 lib/distil/configurable/project-path.rb
distil-0.11.0 lib/distil/configurable/project-path.rb