vendor/bundle/ruby/2.3.0/gems/jekyll-3.3.1/lib/jekyll/readers/post_reader.rb
# Read all the content files from <source>/<dir>/magic_dir
#   and return them with the type klass.
#
# dir - The String relative path of the directory to read.
# magic_dir - The String relative directory to <dir>,
#   looks for content here.
# klass - The return type of the content.
#
# Returns klass type of content files
Read all the content files from //magic_dir
and return them with the type klass.

The String relative path of the directory to read.
magic_dir - The String relative directory to ,
looks for content here.
klass - The return type of the content.

Returns klass type of content files
Read all the content files from // magic_dir and return them with the type klass . The String relative path of the directory to read . magic_dir - The String relative directory to looks for content here . klass - The return type of the content . Returns klass type of content files
def read_content(dir, magic_dir, matcher)
      @site.reader.get_entries(dir, magic_dir).map do |entry|
        next unless entry =~ matcher
        path = @site.in_source_dir(File.join(dir, magic_dir, entry))
        Document.new(path, {
          :site       => @site,
          :collection => @site.posts
        })
      end.reject(&:nil?)
    end
def read_content ( dir , magic_dir , matcher ) @site . reader . get_entries ( dir , magic_dir ) . map do | entry | next unless entry =~ matcher path = @site . in_source_dir ( File . join ( dir , magic_dir , entry ) ) Document . new ( path , { :site => @site , :collection => @site . posts } ) end . reject ( & :nil? ) end
Read all the content files from <source>/<dir>/magic_dir
and return them with the type klass.
Read all the content files from <source > / <dir > / magic_dir and return them with the type klass .
dir
<not_specific>
magic_dir
<not_specific>
matcher
<not_specific>