Class: WikiDiff
- Inherits:
-
Redmine::Helpers::Diff
- Object
- Redmine::Helpers::Diff
- WikiDiff
- Defined in:
- app/models/wiki_diff.rb
Overview
Redmine - project management software Copyright © 2006-2022 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
-
#content_from ⇒ Object
readonly
Returns the value of attribute content_from.
-
#content_to ⇒ Object
readonly
Returns the value of attribute content_to.
Attributes inherited from Redmine::Helpers::Diff
Instance Method Summary collapse
-
#initialize(content_to, content_from) ⇒ WikiDiff
constructor
A new instance of WikiDiff.
Methods inherited from Redmine::Helpers::Diff
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_from ⇒ Object (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_to ⇒ Object (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 |