module Jekyll::Tasks::Collections

Obtain collections information

Public Instance Methods

get() click to toggle source
# File lib/jekyll/tasks/collections.rb, line 9
def get
  collections = []
  folders_starting_with_underscore.each do |collection|
    collections << collection[3..]
  end
  collections
end

Private Instance Methods

folders_starting_with_underscore() click to toggle source
# File lib/jekyll/tasks/collections.rb, line 19
def folders_starting_with_underscore
  Dir.glob('./_*').to_a.sort
end