Class: RubySMB::Server::Share::Provider::Disk
- Defined in:
- lib/ruby_smb/server/share/provider/disk.rb
Defined Under Namespace
Classes: Processor
Constant Summary collapse
- TYPE =
TYPE_DISK
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(name, path) ⇒ Disk
constructor
A new instance of Disk.
Methods inherited from Base
Constructor Details
#initialize(name, path) ⇒ Disk
Returns a new instance of Disk.
425 426 427 428 429 430 |
# File 'lib/ruby_smb/server/share/provider/disk.rb', line 425 def initialize(name, path) path = Pathname.new(File.(path)) raise ArgumentError unless path.directory? @path = path super(name) end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
432 433 434 |
# File 'lib/ruby_smb/server/share/provider/disk.rb', line 432 def path @path end |