class Jekyll::Locale::Generator

Public Instance Methods

generate(site) click to toggle source
# File lib/jekyll/locale/generator.rb, line 8
def generate(site)
  @site   = site
  handler = site.locale_handler
  return if handler.user_locales.empty?

  handler.user_locales.each do |locale|
    handler.filtered_portfolio.each do |canon_doc|
      handler.append_page(Locale::AutoPage, canon_doc, locale)
    end
  end
end
inspect() click to toggle source
# File lib/jekyll/locale/generator.rb, line 20
def inspect
  "#<#{self.class} @site=#{@site}>"
end