Class: Alt::URI::Generic
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #fspath=(val) ⇒ Object
-
#initialize(parts = nil) ⇒ Generic
constructor
A new instance of Generic.
- #initialize_copy(other) ⇒ Object
- #netpath ⇒ Object (also: #fspath)
- #netpath=(val) ⇒ Object
- #normalize ⇒ Object
Methods included from Builders
create, create_, parse, parse_
Methods included from Ops::Generic
#[], #[]=, #abs, #absolute?, #join, #rel, #relative?, #route_from, #route_to
Methods inherited from Base
Methods included from RIO::Fwd
#fwd, #fwd_reader, #fwd_readers, #fwd_writer, #fwd_writers
Methods included from Ops::PathParts
#basename, #basename=, #dirname, #dirname=, #extname, #extname=, #filename, #filename=
Constructor Details
Instance Method Details
#fspath=(val) ⇒ Object
202 |
# File 'lib/rio/alturi.rb', line 202 def fspath=(val) netpath = val end |
#initialize_copy(other) ⇒ Object
170 171 172 |
# File 'lib/rio/alturi.rb', line 170 def initialize_copy(other) super end |
#netpath ⇒ Object Also known as: fspath
188 189 190 191 192 193 |
# File 'lib/rio/alturi.rb', line 188 def netpath case self.scheme when nil,'file' then parts.netpath else path end end |
#netpath=(val) ⇒ Object
195 196 197 198 199 200 |
# File 'lib/rio/alturi.rb', line 195 def netpath=(val) case self.scheme when 'file' then parts.netpath=(val) else path = val end end |
#normalize ⇒ Object
173 174 175 |
# File 'lib/rio/alturi.rb', line 173 def normalize super end |