Class: CloudCannonJekyll::DataReader
- Inherits:
-
Jekyll::DataReader
- Object
- Jekyll::DataReader
- CloudCannonJekyll::DataReader
- Defined in:
- lib/cloudcannon-jekyll/readers/data-reader.rb
Overview
Reads data files and creates a collections-style hash representation
Instance Method Summary collapse
-
#read_data_file(path) ⇒ Object
Determines how to read a data file.
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.
12 13 14 15 16 |
# File 'lib/cloudcannon-jekyll/readers/data-reader.rb', line 12 def read_data_file(path) { "path" => path, } end |