Sha256: 1a85b49ee5c7f57f90dd473f732bfe1bf69c6b7356bb805b1f5dc5f4f0be1aef
Contents?: true
Size: 415 Bytes
Versions: 3
Compression:
Stored size: 415 Bytes
Contents
module AndParcel class FileRef attr_reader :local, :relative, :dir def self.[](base) files=[] if File.exists?(base) files += Dir[File.join(base, '**', '*')].collect {|x| FileRef.new(x, base)} end files end def initialize(name, dir=nil) @local=name @dir=dir @relative=@local[dir.size, 10000] if @local[0, dir.size]==dir @relative=@local if !@relative end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
andparcel-0.4.1 | lib/andparcel/fileref.rb |
andparcel-0.4.0 | lib/andparcel/fileref.rb |
andparcel-0.3.2 | lib/andparcel/fileref.rb |