Class: WikiDiff

Inherits:
Redmine::Helpers::Diff show all
Defined in:
app/models/wiki_diff.rb

Overview

Redmine - project management software Copyright © 2006- Jean-Philippe Lang

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Instance Attribute Summary collapse

Attributes inherited from Redmine::Helpers::Diff

#diff, #words

Instance Method Summary collapse

Methods inherited from Redmine::Helpers::Diff

#to_html

Constructor Details

#initialize(content_to, content_from) ⇒ WikiDiff

Returns a new instance of WikiDiff.



23
24
25
26
27
# File 'app/models/wiki_diff.rb', line 23

def initialize(content_to, content_from)
  @content_to = content_to
  @content_from = content_from
  super(content_to.text, content_from.text)
end

Instance Attribute Details

#content_fromObject (readonly)

Returns the value of attribute content_from.



21
22
23
# File 'app/models/wiki_diff.rb', line 21

def content_from
  @content_from
end

#content_toObject (readonly)

Returns the value of attribute content_to.



21
22
23
# File 'app/models/wiki_diff.rb', line 21

def content_to
  @content_to
end