Sha256: b3cf84cc77ef5b5274ea21756440086a0f8681f543f7a7cd13a9b7675102c35a

Contents?: true

Size: 443 Bytes

Versions: 6

Compression:

Stored size: 443 Bytes

Contents

# frozen_string_literal: true

require "jekyll"

module CloudCannonJekyll
  # Reads data files and creates a collections-style hash representation
  class DataReader < Jekyll::DataReader
    # Determines how to read a data file.
    # This is overridden return a hash instead of reading the file.
    #
    # Returns a hash with the path to the data file.
    def read_data_file(path)
      {
        "path" => path,
      }
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cloudcannon-jekyll-0.3.2 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-1.5.3 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-1.5.2 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-0.3.1 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-0.3.0 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-1.5.0 lib/cloudcannon-jekyll/readers/data-reader.rb