Method: Git::Path#initialize
- Defined in:
- lib/git/path.rb
#initialize(path, check_path = true) ⇒ Path
Returns a new instance of Path.
6 7 8 9 10 11 12 |
# File 'lib/git/path.rb', line 6 def initialize(path, check_path = true) if !check_path || File.exists?(path) @path = File.(path) else raise ArgumentError, "path does not exist", File.(path) end end |