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

Version Path
jekyll-3.5.2 lib/jekyll/readers/static_file_reader.rb
jekyll-3.5.1 lib/jekyll/readers/static_file_reader.rb
jekyll-3.4.5 lib/jekyll/readers/static_file_reader.rb
jekyll-3.5.0 lib/jekyll/readers/static_file_reader.rb
jekyll-3.4.4 lib/jekyll/readers/static_file_reader.rb
jekyll-3.4.3 lib/jekyll/readers/static_file_reader.rb
jekyll-3.4.2 lib/jekyll/readers/static_file_reader.rb
jekyll-3.4.1 lib/jekyll/readers/static_file_reader.rb
jekyll-3.4.0 lib/jekyll/readers/static_file_reader.rb
jekyll-3.3.1 lib/jekyll/readers/static_file_reader.rb
jekyll-3.3.0 lib/jekyll/readers/static_file_reader.rb
jekyll-3.3.0.pre.rc1 lib/jekyll/readers/static_file_reader.rb
jekyll-3.2.1 lib/jekyll/readers/static_file_reader.rb
jekyll-3.2.0 lib/jekyll/readers/static_file_reader.rb
jekyll-3.2.0.pre.beta2 lib/jekyll/readers/static_file_reader.rb