Class: Propolize::HeadingChunk
- Inherits:
-
Object
- Object
- Propolize::HeadingChunk
- Defined in:
- lib/propolize.rb
Overview
A heading chunk is a group of two lines, the second of which is repeated ‘-’ characters (i.e. the underlining of the heading)
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
- #getDocumentComponent ⇒ Object
-
#initialize(text) ⇒ HeadingChunk
constructor
A new instance of HeadingChunk.
- #to_s ⇒ Object
Constructor Details
#initialize(text) ⇒ HeadingChunk
Returns a new instance of HeadingChunk.
804 805 806 |
# File 'lib/propolize.rb', line 804 def initialize(text) @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
803 804 805 |
# File 'lib/propolize.rb', line 803 def text @text end |