Class: RTFM::TextSection
- Inherits:
-
Struct
- Object
- Struct
- RTFM::TextSection
- Defined in:
- lib/rtfm/sections/text.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
2 3 4 |
# File 'lib/rtfm/sections/text.rb', line 2 def body @body end |
#title ⇒ Object
Returns the value of attribute title
2 3 4 |
# File 'lib/rtfm/sections/text.rb', line 2 def title @title end |
Instance Method Details
#to_groff ⇒ Object
3 4 5 6 7 8 |
# File 'lib/rtfm/sections/text.rb', line 3 def to_groff GroffString.groffify do |out| out.section title.to_s.upcase out << body.to_s end end |