Sha256: 35e0b056e96724f9caa25dab642d83cc2b2cdc038b7627e23887b75a1068f3ad
Contents?: true
Size: 601 Bytes
Versions: 3
Compression:
Stored size: 601 Bytes
Contents
module Bunto 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 { |file| @unfiltered_content << StaticFile.new(@site, @site.source, @dir, file) } @unfiltered_content end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bunto-3.0.0 | lib/bunto/readers/static_file_reader.rb |
bunto-2.0.0.pre | lib/bunto/readers/static_file_reader.rb |
bunto-1.0.0 | lib/bunto/readers/static_file_reader.rb |