Class: Jfm::Site

Inherits:
Object
  • Object
show all
Defined in:
lib/jfm.rb

Instance Method Summary collapse

Constructor Details

#initialize(dir) ⇒ Site

Returns a new instance of Site.


10
11
12
# File 'lib/jfm.rb', line 10

def initialize(dir)
  @working_dir = Pathname(dir)
end

Instance Method Details

#postsObject


14
15
16
# File 'lib/jfm.rb', line 14

def posts
  post_files.map { |file| Post.new(file) }
end