Class: DocumentGenerator::Output
- Inherits:
-
Object
- Object
- DocumentGenerator::Output
- Defined in:
- lib/document_generator/output.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#description ⇒ Object
Returns the value of attribute description.
Instance Method Summary collapse
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
3 4 5 |
# File 'lib/document_generator/output.rb', line 3 def content @content end |
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/document_generator/output.rb', line 3 def description @description end |
Instance Method Details
#escaped_content ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/document_generator/output.rb', line 5 def escaped_content temp = [] content.each do |line| temp << line temp << "\n" end temp.join.rstrip end |