| Class | URI::File |
| In: |
lib/uri/file.rb
|
| Parent: | GenericEx |
| COMPONENT | = | [ :scheme, :path |
# File lib/uri/file.rb, line 20 def initialize ( *args ) super unless @host.nil? or @host.empty? raise ArgumentError, "You cannot neither setup a host (#{@host}), nor a relative path" end end
# File lib/uri/file.rb, line 28 def checkout p = pathname raise CheckoutError, to_s unless p.exist? [p, nil] end
# File lib/uri/file.rb, line 51 def fingerprint digest = Digest::MD5.new if pathname.directory? pathname.find do |path| next if path.directory? or not path.readable? digest << path.read end else digest << pathname.read end digest.to_s end