Class: Bookingit::Config::Matter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(chapter_filenames, root_dir) ⇒ Matter

Returns a new instance of Matter.



66
67
68
69
70
# File 'lib/bookingit/config.rb', line 66

def initialize(chapter_filenames,root_dir)
  @chapters = Array(chapter_filenames).map { |chapter_filename|
    Chapter.new(markdown_path: File.join(root_dir,chapter_filename))
  }
end

Instance Attribute Details

#chaptersObject (readonly)

Returns the value of attribute chapters.



65
66
67
# File 'lib/bookingit/config.rb', line 65

def chapters
  @chapters
end