Class: Build2Spec::Builder::UnresolvedPath
Instance Method Summary collapse
-
#initialize(path) ⇒ UnresolvedPath
constructor
A new instance of UnresolvedPath.
- #resolve(directory) ⇒ Object
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 |