Class: Origen::Utility::FileDiff::Formatter::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/origen/utility/file_diff.rb

Direct Known Subclasses

Html, Text

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(processed_diff, output_file_name) ⇒ Base

Returns a new instance of Base


128
129
130
131
132
# File 'lib/origen/utility/file_diff.rb', line 128

def initialize(processed_diff, output_file_name)
  self.source_output = processed_diff.source_output
  self.target_output = processed_diff.target_output
  self.file = File.open(output_file_name, 'w')
end

Instance Attribute Details

#fileObject

Returns the value of attribute file


127
128
129
# File 'lib/origen/utility/file_diff.rb', line 127

def file
  @file
end

#source_outputObject

Returns the value of attribute source_output


127
128
129
# File 'lib/origen/utility/file_diff.rb', line 127

def source_output
  @source_output
end

#target_outputObject

Returns the value of attribute target_output


127
128
129
# File 'lib/origen/utility/file_diff.rb', line 127

def target_output
  @target_output
end