Sha256: 47a413d13b3f10ab5c3926ca01fb8a4baf267ff96cf447792faea0b221fa84d4
Contents?: true
Size: 598 Bytes
Versions: 15
Compression:
Stored size: 598 Bytes
Contents
module Jekyll class StaticFileReader attr_reader :site, :dir, :unfiltered_content def initialize(site, dir) @site = site @dir = dir @unfiltered_content = [] end # Read all the files in <source>/<dir>/ for Yaml header and create a new Page # object for each file. # # dir - The String relative path of the directory to read. # # Returns an array of static files. def read(files) files.map do |file| @unfiltered_content << StaticFile.new(@site, @site.source, @dir, file) end @unfiltered_content end end end
Version data entries
15 entries across 15 versions & 1 rubygems