Class: Chitin::FSObject
Direct Known Subclasses
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, opts = {}) ⇒ FSObject
constructor
The choice to not have File.expand_path here is explicitly done.
- #lstat ⇒ Object
- #to_s ⇒ Object
- #unknown_type? ⇒ Boolean
Constructor Details
#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.
9 10 11 12 |
# File 'lib/chitin/file.rb', line 9 def initialize(path, opts={}) @path = path @unknown = opts[:unknown] end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
3 4 5 |
# File 'lib/chitin/file.rb', line 3 def path @path end |