Class: Build2Spec::Builder::UnresolvedPath

Inherits:
Object
  • Object
show all
Defined in:
lib/build2spec.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ UnresolvedPath

Returns a new instance of UnresolvedPath.



48
49
50
# File 'lib/build2spec.rb', line 48

def initialize(path)
  @path = path
end

Instance Method Details

#resolve(directory) ⇒ Object



52
53
54
55
56
57
# File 'lib/build2spec.rb', line 52

def resolve(directory)
  unless /.rb$/ =~ @path
    @path += ".rb"
  end
  return File::join(directory, @path)
end