Sha256: bb09771fb50a3fec41046c85ffcf146722a87cb7af30559397bd1fae91898d32
Contents?: true
Size: 705 Bytes
Versions: 3
Compression:
Stored size: 705 Bytes
Contents
# Copyright: Copyright (c) 2005 Nicolas Pouillard. All rights reserved. # Author: Nicolas Pouillard <ertai@lrde.epita.fr>. # License: Gnu General Public License. # $LastChangedBy: polrop $ # $Id: file.rb 159 2005-02-18 12:07:23Z polrop $ require 'uri_ex' module URI class File < Generic COMPONENT = [ :scheme, :path ].freeze def initialize ( *args ) super @host = '' end def self.build ( args ) tmp = Util::make_components_hash(self, args) return super(tmp) end def checkout p = self.pathname raise CheckoutError, to_s unless p.exist? p end end # class File @@schemes['FILE'] = File end # module URI
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ttk-0.1.576 | ruby_ex/uri/file.rb |
ttk-0.1.579 | ruby_ex/uri/file.rb |
ttk-0.1.580 | ruby_ex/uri/file.rb |