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

- (StubSection) initialize

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

- (Object) paragraphs

Returns the value of attribute paragraphs



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

def paragraphs
  @paragraphs
end

- (Object) prepend

Returns the value of attribute prepend



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

def prepend
  @prepend
end

- (Object) subheading

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

- (Object) each_paragraph(&block)



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

- (Object) first_paragraph



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

def first_paragraph
  @paragraphs.first
end