Method: Obcd::Finder#initialize
- Defined in:
- lib/obcd/finder.rb
#initialize(path) ⇒ Finder
Returns a new instance of Finder.
5 6 7 8 |
# File 'lib/obcd/finder.rb', line 5 def initialize(path) @path = File.(path) fail Errno::ENOENT.new(path) unless File.exist?(@path) || Dir.exist?(@path) end |