Class: Gorillib::DiffDrawer
- Inherits:
-
Object
- Object
- Gorillib::DiffDrawer
- Includes:
- AnsiColors, DiffDisplayTools, DiffDrawerMethods
- Defined in:
- lib/gorillib/diff.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ DiffDrawer
constructor
A new instance of DiffDrawer.
Methods included from DiffDrawerMethods
#display_add_items, #display_diff_indices, #display_eql_items, #display_noteql_items, #for_subhash
Methods included from DiffDisplayTools
#b_left, #b_right, #decrease_indentation, #display_add, #display_eql, #display_hetero, #display_indices, #display_key_header, #display_noteql_atoms, #header, #increase_indentation, #indent, #only_left_key, #only_right_key
Methods included from AnsiColors
Constructor Details
#initialize(options = {}) ⇒ DiffDrawer
Returns a new instance of DiffDrawer.
130 131 132 133 134 135 136 |
# File 'lib/gorillib/diff.rb', line 130 def initialize = {} @stream = [:stream] || $stdout @left = [:left] || 'left' @right = [:right] || 'right' @indentation = [:indentation] || 0 @tab_width = [:tab_width] || 4 end |