Class: PatienceDiff::Html::HeaderHelper

Inherits:
Object
  • Object
show all
Includes:
Escaping
Defined in:
lib/patience_diff/html/header_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Escaping

#escape

Constructor Details

#initialize(left_header, right_header, header_id) ⇒ HeaderHelper

Returns a new instance of HeaderHelper.



9
10
11
12
13
# File 'lib/patience_diff/html/header_helper.rb', line 9

def initialize(left_header, right_header, header_id)
  @left_header = left_header
  @right_header = right_header
  @header_id = header_id
end

Instance Attribute Details

#header_idObject

Returns the value of attribute header_id.



7
8
9
# File 'lib/patience_diff/html/header_helper.rb', line 7

def header_id
  @header_id
end

#left_headerObject

Returns the value of attribute left_header.



7
8
9
# File 'lib/patience_diff/html/header_helper.rb', line 7

def left_header
  @left_header
end

#right_headerObject

Returns the value of attribute right_header.



7
8
9
# File 'lib/patience_diff/html/header_helper.rb', line 7

def right_header
  @right_header
end