Class: WikiDiff

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

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.


252
253
254
255
256
# File 'app/models/wiki_page.rb', line 252

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


250
251
252
# File 'app/models/wiki_page.rb', line 250

def content_from
  @content_from
end

#content_toObject (readonly)

Returns the value of attribute content_to


250
251
252
# File 'app/models/wiki_page.rb', line 250

def content_to
  @content_to
end