Class: Bookingit::Config::Matter
- Inherits:
-
Object
- Object
- Bookingit::Config::Matter
- Defined in:
- lib/bookingit/config.rb
Instance Attribute Summary collapse
-
#chapters ⇒ Object
readonly
Returns the value of attribute chapters.
Instance Method Summary collapse
-
#initialize(chapter_filenames, root_dir) ⇒ Matter
constructor
A new instance of Matter.
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
#chapters ⇒ Object (readonly)
Returns the value of attribute chapters.
65 66 67 |
# File 'lib/bookingit/config.rb', line 65 def chapters @chapters end |