Class: ODDB::FiPDF::TestChapterWrapper::StubChapter
- Defined in:
- ext/fipdf/test/chapter_wrapper_test.rb
Instance Attribute Summary collapse
-
#heading ⇒ Object
Returns the value of attribute heading.
-
#sections ⇒ Object
Returns the value of attribute sections.
Instance Method Summary collapse
- #each_section(&block) ⇒ Object
- #first_section ⇒ Object
-
#initialize ⇒ StubChapter
constructor
A new instance of StubChapter.
Constructor Details
#initialize ⇒ StubChapter
Returns a new instance of StubChapter.
19 20 21 |
# File 'ext/fipdf/test/chapter_wrapper_test.rb', line 19 def initialize @sections = [] end |
Instance Attribute Details
#heading ⇒ Object
Returns the value of attribute heading.
18 19 20 |
# File 'ext/fipdf/test/chapter_wrapper_test.rb', line 18 def heading @heading end |
#sections ⇒ Object
Returns the value of attribute sections.
18 19 20 |
# File 'ext/fipdf/test/chapter_wrapper_test.rb', line 18 def sections @sections end |
Instance Method Details
#each_section(&block) ⇒ Object
22 23 24 25 26 |
# File 'ext/fipdf/test/chapter_wrapper_test.rb', line 22 def each_section(&block) @sections.each { |chapter| block.call(chapter) } end |
#first_section ⇒ Object
27 28 29 |
# File 'ext/fipdf/test/chapter_wrapper_test.rb', line 27 def first_section @sections.first end |