Class: RIO::FS::URL
- Defined in:
- lib/rio/fs/url.rb
Constant Summary
Constants included from RIO::File
Constants inherited from Base
Instance Attribute Summary collapse
-
#dir ⇒ Object
readonly
Returns the value of attribute dir.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
Class Method Summary collapse
Instance Method Summary collapse
- #directory?(s) ⇒ Boolean
-
#initialize(*args) ⇒ URL
constructor
A new instance of URL.
- #symlink?(s) ⇒ Boolean
Methods included from Str
#basename, #cleanpath, #dirname, #extname, #fnmatch?, #join
Constructor Details
#initialize(*args) ⇒ URL
Returns a new instance of URL.
45 46 47 48 49 50 51 |
# File 'lib/rio/fs/url.rb', line 45 def initialize(*args) @file = ::File @test = nil @dir = nil @path = nil @util = nil end |
Instance Attribute Details
#dir ⇒ Object (readonly)
Returns the value of attribute dir.
44 45 46 |
# File 'lib/rio/fs/url.rb', line 44 def dir @dir end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
44 45 46 |
# File 'lib/rio/fs/url.rb', line 44 def file @file end |
Class Method Details
.create(*args) ⇒ Object
53 54 55 |
# File 'lib/rio/fs/url.rb', line 53 def self.create(*args) instance(*args) end |
Instance Method Details
#directory?(s) ⇒ Boolean
59 |
# File 'lib/rio/fs/url.rb', line 59 def directory?(s) false end |
#symlink?(s) ⇒ Boolean
58 |
# File 'lib/rio/fs/url.rb', line 58 def symlink?(s) false end |