Sha256: 162d7f1448c1fd05e549f98ec0ff367958aedfe696098e6561d35d783b9fa877

Contents?: true

Size: 581 Bytes

Versions: 16

Compression:

Stored size: 581 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 { |file| @unfiltered_content << StaticFile.new(@site, @site.source, @dir, file) }
      @unfiltered_content
    end
  end
end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
blackboard-3.1.9 lib/jekyll/readers/static_file_reader.rb
blackboard-3.1.8 lib/jekyll/readers/static_file_reader.rb
blackboard-3.1.7 lib/jekyll/readers/static_file_reader.rb
jekyll-3.2.0.pre.beta1 lib/jekyll/readers/static_file_reader.rb
jekyll-3.1.6 lib/jekyll/readers/static_file_reader.rb
jekyll-3.1.5 lib/jekyll/readers/static_file_reader.rb
jekyll-3.1.4 lib/jekyll/readers/static_file_reader.rb
jekyll-3.1.3 lib/jekyll/readers/static_file_reader.rb
jekyll-3.1.2 lib/jekyll/readers/static_file_reader.rb
jekyllplusadmin-1.1.0 lib/jekyll/readers/static_file_reader.rb
jekyllplusadmin-1.0.0 lib/jekyll/readers/static_file_reader.rb
jekyll-3.1.1 lib/jekyll/readers/static_file_reader.rb
jekyll-3.1.0 lib/jekyll/readers/static_file_reader.rb
jekyll-3.1.0.pre.rc3 lib/jekyll/readers/static_file_reader.rb
jekyll-3.1.0.pre.rc2 lib/jekyll/readers/static_file_reader.rb
jekyll-3.1.0.pre.rc1 lib/jekyll/readers/static_file_reader.rb