Class: DocumentGenerator::Output

Inherits:
Object
  • Object
show all
Defined in:
lib/document_generator/output.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content.



3
4
5
# File 'lib/document_generator/output.rb', line 3

def content
  @content
end

#descriptionObject

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_contentObject



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