Class: DiffJson::HtmlOutput
- Inherits:
-
Object
- Object
- DiffJson::HtmlOutput
- Defined in:
- lib/diff_json/output/html_output.rb
Instance Method Summary collapse
- #diff ⇒ Object
-
#initialize(diff, **opts) ⇒ HtmlOutput
constructor
A new instance of HtmlOutput.
- #markup ⇒ Object
Constructor Details
#initialize(diff, **opts) ⇒ HtmlOutput
Returns a new instance of HtmlOutput.
3 4 5 6 7 8 9 10 |
# File 'lib/diff_json/output/html_output.rb', line 3 def initialize(diff, **opts) @diff = diff @opts = { table_id_prefix: 'diff_json_view_0', markup_type: :bootstrap } @markup = build end |
Instance Method Details
#diff ⇒ Object
12 13 14 |
# File 'lib/diff_json/output/html_output.rb', line 12 def diff return @diff end |
#markup ⇒ Object
16 17 18 |
# File 'lib/diff_json/output/html_output.rb', line 16 def markup return @markup end |