Class: DataMetaXtra::FileSys::PosixOwn
- Inherits:
-
Object
- Object
- DataMetaXtra::FileSys::PosixOwn
- Defined in:
- lib/dataMetaXtra/fileSys.rb
Overview
POSIX ownership information - group and the user
Instance Attribute Summary collapse
-
#g ⇒ Object
Returns the value of attribute g.
-
#u ⇒ Object
Returns the value of attribute u.
Class Method Summary collapse
-
.from(source, kind) ⇒ IdName
Instance according to the description.
Instance Method Summary collapse
-
#initialize(user, group = nil) ⇒ PosixOwn
constructor
Convenience constructor.
Constructor Details
Instance Attribute Details
#g ⇒ Object
Returns the value of attribute g.
305 306 307 |
# File 'lib/dataMetaXtra/fileSys.rb', line 305 def g @g end |
#u ⇒ Object
Returns the value of attribute u.
305 306 307 |
# File 'lib/dataMetaXtra/fileSys.rb', line 305 def u @u end |
Class Method Details
.from(source, kind) ⇒ IdName
Returns instance according to the description.
314 315 316 317 318 319 320 321 322 323 |
# File 'lib/dataMetaXtra/fileSys.rb', line 314 def self.from(source, kind) case when source.kind_of?(NilClass) || source.kind_of?(IdName) source when source.kind_of?(String) IdName.forName(source) else raise ArgumentError, %<For #{kind} ownership, invalid ownership source: #{source.inspect} > end end |