Class: Alt::URI::Generic
Instance Attribute Summary
Attributes inherited from Base
#ext, #parts
Instance Method Summary
collapse
Methods included from Builders
create, create_, parse, parse_
#[], #[]=, #abs, #absolute?, #join, #rel, #relative?, #route_from, #route_to
Methods inherited from Base
#==, #length, #sub
Methods included from RIO::Fwd
#fwd, #fwd_reader, #fwd_readers, #fwd_writer, #fwd_writers
#basename, #basename=, #dirname, #dirname=, #extname, #extname=, #filename, #filename=
Constructor Details
#initialize(parts = nil) ⇒ Generic
166
167
168
169
|
# File 'lib/rio/alturi.rb', line 166
def initialize(parts=nil)
prts = parts || Alt::URI::Gen::URIParts.new
super(prts)
end
|
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
|