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.



132
133
134
135
136
# File 'lib/origen/utility/file_diff.rb', line 132

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.



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

def file
  @file
end

#source_outputObject

Returns the value of attribute source_output.



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

def source_output
  @source_output
end

#target_outputObject

Returns the value of attribute target_output.



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

def target_output
  @target_output
end