Class: FSattr
- Inherits:
-
Object
- Object
- FSattr
- Includes:
- Enumerable, FSattrLinux, FSattrOSX
- Defined in:
- lib/fsattr.rb
Overview
todo: not complete
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, val) ⇒ Object
- #each ⇒ Object
-
#initialize(path) ⇒ FSattr
constructor
A new instance of FSattr.
Methods included from FSattrLinux
#fsattr_fget, #fsattr_flist, #fsattr_fset, #fsattr_pget, #fsattr_plist, #fsattr_pset
Methods included from FSattrOSX
#fsattr_fget, #fsattr_flist, #fsattr_fset, #fsattr_pget, #fsattr_plist, #fsattr_pset
Constructor Details
#initialize(path) ⇒ FSattr
Returns a new instance of FSattr.
36 37 38 |
# File 'lib/fsattr.rb', line 36 def initialize(path) @path = path end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
30 31 32 |
# File 'lib/fsattr.rb', line 30 def path @path end |
Instance Method Details
#[](key) ⇒ Object
44 45 46 |
# File 'lib/fsattr.rb', line 44 def [](key) get key end |
#[]=(key, val) ⇒ Object
48 49 50 |
# File 'lib/fsattr.rb', line 48 def []=(key, val) set key, val end |
#each ⇒ Object
40 41 42 |
# File 'lib/fsattr.rb', line 40 def each list end |