Sha256: 5c416051c831ee2e5bfff3d3d9220143a387dd520e395df91df1392353f17540
Contents?: true
Size: 675 Bytes
Versions: 4
Compression:
Stored size: 675 Bytes
Contents
module EverExp class Files attr_accessor :note include Enumerable def initialize path @path = path end def name File.basename(@path).gsub(/_files$/, '') end def each &block _files.each &block end def isHtml? false end private def _files @files ||= Dir.new(@path). reject { |name| name == '.' or name == '..' }. map { |basename| FileInFiles.new File.join(@path, basename) } end class FileInFiles attr_reader :location def initialize path @location = path end def name File.basename location end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ever_exp-0.1.3 | lib/ever_exp/files.rb |
ever_exp-0.1.2 | lib/ever_exp/files.rb |
ever_exp-0.1.1 | lib/ever_exp/files.rb |
ever_exp-0.1.0 | lib/ever_exp/files.rb |