Class: Knj::Fs
Defined Under Namespace
Classes: File, Filesystem, Ftp, Ssh
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Fs
constructor
A new instance of Fs.
- #spawn_driver ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ Fs
Returns a new instance of Fs.
22 23 24 |
# File 'lib/knj/fs/fs.rb', line 22 def initialize(args = {}) @args = args end |
Class Method Details
.drivers ⇒ Object
18 19 20 |
# File 'lib/knj/fs/fs.rb', line 18 def self.drivers return @drivers end |
Instance Method Details
#spawn_driver ⇒ Object
26 27 28 29 |
# File 'lib/knj/fs/fs.rb', line 26 def spawn_driver class_name = Php4r.ucwords(@args[:driver]) @driver = self.class.const_get(class_name).new(:fs => self, :args => @args) end |