Class: Alt::URI::Generic

Inherits:
Base show all
Extended by:
Builders
Includes:
Ops::Generic
Defined in:
lib/rio/alturi.rb

Instance Attribute Summary

Attributes inherited from Base

#ext, #parts

Instance Method Summary collapse

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

#==, #length, #sub

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

#initialize(parts = nil) ⇒ Generic

Returns a new instance of 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

#netpathObject 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

#normalizeObject



173
174
175
# File 'lib/rio/alturi.rb', line 173

def normalize
  super
end