Class: OpenLogCleaner::Document

Inherits:
Object
  • Object
show all
Defined in:
lib/openlogcleaner/document.rb

Direct Known Subclasses

HtmlDocument, OldHtmlDocument, RpolDocument

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title = nil, count_id = true) ⇒ Document

Returns a new instance of Document.



9
10
11
12
13
14
# File 'lib/openlogcleaner/document.rb', line 9

def initialize(title=nil, count_id=true)
  @title    = title
  @count_id = count_id
  @id_counter = 0
  @messages = []
end

Instance Attribute Details

#filesObject

Returns the value of attribute files.



7
8
9
# File 'lib/openlogcleaner/document.rb', line 7

def files
  @files
end

#messagesObject

Returns the value of attribute messages.



7
8
9
# File 'lib/openlogcleaner/document.rb', line 7

def messages
  @messages
end

#titleObject

Returns the value of attribute title.



7
8
9
# File 'lib/openlogcleaner/document.rb', line 7

def title
  @title
end