Method: Chitin::FSObject#initialize
- Defined in:
- lib/chitin/file.rb
#initialize(path, opts = {}) ⇒ FSObject
The choice to not have File.expand_path here is explicitly done. Relativity is up to the user. Also it got really annoying seeing the same prefix over and over and over again on lists of files.
12 13 14 15 16 |
# File 'lib/chitin/file.rb', line 12 def initialize(path, opts={}) @path = path @search = proc { path } @unknown = opts[:unknown] end |