Class: FSattr

Inherits:
Object
  • Object
show all
Includes:
Enumerable, FSattrLinux, FSattrOSX
Defined in:
lib/fsattr.rb

Overview

todo: not complete

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathObject

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

#eachObject



40
41
42
# File 'lib/fsattr.rb', line 40

def each
  list
end