Sha256: df5b8c5586133557e433fa22b56773d1eb97490502dbc6bd39901d3e2596a8d0
Contents?: true
Size: 482 Bytes
Versions: 3
Compression:
Stored size: 482 Bytes
Contents
# frozen_string_literal: true module Staticky class Filesystem < SimpleDelegator def self.test files = Staticky::Files.new(memory: true) new(files) end def self.real files = Staticky::Files.new new(files) end def touch(*files) files.each do |file| super(file) end end def children(directory) tokens = [".", ".."] entries(directory).reject { |entry| tokens.include?(entry) } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
staticky-0.3.1 | lib/staticky/filesystem.rb |
staticky-0.3.0 | lib/staticky/filesystem.rb |
staticky-0.2.0 | lib/staticky/filesystem.rb |