Class: WikiDiff
- Inherits:
-
Redmine::Helpers::Diff
- Object
- Redmine::Helpers::Diff
- WikiDiff
- Defined in:
- app/models/wiki_page.rb
Overview
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
288 289 290 291 292 |
# File 'app/models/wiki_page.rb', line 288 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
286 287 288 |
# File 'app/models/wiki_page.rb', line 286 def content_from @content_from end |
#content_to ⇒ Object (readonly)
Returns the value of attribute content_to
286 287 288 |
# File 'app/models/wiki_page.rb', line 286 def content_to @content_to end |