Class: CloudCannonJekyll::DataReader

Inherits:
Jekyll::DataReader
  • Object
show all
Defined in:
lib/cloudcannon-jekyll/readers/data-reader.rb

Overview

Reads data files and creates a collections-style hash representation

Instance Method Summary collapse

Instance Method Details

#read_data_file(path) ⇒ Object

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.



13
14
15
16
17
# File 'lib/cloudcannon-jekyll/readers/data-reader.rb', line 13

def read_data_file(path)
  {
    "path" => path,
  }
end