class Hikkoshi::Jekyll::Importer

Constants

EXTENSIONS

Public Class Methods

new(path) click to toggle source
# File lib/hikkoshi/jekyll/importer.rb, line 5
def initialize(path)
  @path = File.expand_path(path)

  @posts = read_posts
end

Private Instance Methods

read_posts() click to toggle source
# File lib/hikkoshi/jekyll/importer.rb, line 12
def read_posts
  Dir.glob(File.join(@path, EXTENSIONS)).map {|filename|
    Hikkoshi::Jekyll::Post.new(filename)
  }
end