Class: Gorillib::DiffDrawer

Inherits:
Object
  • Object
show all
Includes:
AnsiColors, DiffDisplayTools, DiffDrawerMethods
Defined in:
lib/gorillib/diff.rb

Instance Method Summary collapse

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

#cyan

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 options = {}
  @stream = options[:stream] || $stdout
  @left = options[:left] || 'left'
  @right = options[:right] || 'right'
  @indentation = options[:indentation] || 0
  @tab_width = options[:tab_width] || 4
end