Class: ODDB::FiPDF::TestSectionWrapper::StubSection

Inherits:
Object
  • Object
show all
Defined in:
ext/fipdf/test/section_wrapper_test.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStubSection

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

#paragraphsObject

Returns the value of attribute paragraphs.



20
21
22
# File 'ext/fipdf/test/section_wrapper_test.rb', line 20

def paragraphs
  @paragraphs
end

#prependObject

Returns the value of attribute prepend.



20
21
22
# File 'ext/fipdf/test/section_wrapper_test.rb', line 20

def prepend
  @prepend
end

#subheadingObject

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_paragraphObject



30
31
32
# File 'ext/fipdf/test/section_wrapper_test.rb', line 30

def first_paragraph
	@paragraphs.first
end