Method: Jekyll::DataReader#read
- Defined in:
- lib/ngage/jekyll/readers/data_reader.rb
#read(dir) ⇒ Object
Read all the files in <dir> and adds them to @content
dir - The String relative path of the directory to read.
Returns @content, a Hash of the .yaml, .yml, .json, and .csv files in the base directory
18 19 20 21 22 |
# File 'lib/ngage/jekyll/readers/data_reader.rb', line 18 def read(dir) base = site.in_source_dir(dir) read_data_to(base, @content) @content end |