Class: ODDB::FiPDF::TestSectionWrapper::StubSection
- Defined in:
- ext/fipdf/test/section_wrapper_test.rb
Instance Attribute Summary collapse
-
#paragraphs ⇒ Object
Returns the value of attribute paragraphs.
-
#prepend ⇒ Object
Returns the value of attribute prepend.
-
#subheading ⇒ Object
Returns the value of attribute subheading.
Instance Method Summary collapse
- #each_paragraph(&block) ⇒ Object
- #first_paragraph ⇒ Object
-
#initialize ⇒ StubSection
constructor
A new instance of StubSection.
Constructor Details
#initialize ⇒ StubSection
Returns a new instance of StubSection.
21 22 23 24 |
# File 'ext/fipdf/test/section_wrapper_test.rb', line 21 def initialize @subheading = "" @paragraphs = [] end |
Instance Attribute Details
#paragraphs ⇒ Object
Returns the value of attribute paragraphs.
20 21 22 |
# File 'ext/fipdf/test/section_wrapper_test.rb', line 20 def paragraphs @paragraphs end |
#prepend ⇒ Object
Returns the value of attribute prepend.
20 21 22 |
# File 'ext/fipdf/test/section_wrapper_test.rb', line 20 def prepend @prepend end |
#subheading ⇒ Object
Returns the value of attribute subheading.
20 21 22 |
# File 'ext/fipdf/test/section_wrapper_test.rb', line 20 def subheading @subheading end |
Instance Method Details
#each_paragraph(&block) ⇒ Object
25 26 27 28 29 |
# File 'ext/fipdf/test/section_wrapper_test.rb', line 25 def each_paragraph(&block) @paragraphs.each{ |section| block.call(section) } end |
#first_paragraph ⇒ Object
30 31 32 |
# File 'ext/fipdf/test/section_wrapper_test.rb', line 30 def first_paragraph @paragraphs.first end |