Class: Origen::Utility::FileDiff::Formatter::Base
- Defined in:
- lib/origen/utility/file_diff.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#source_output ⇒ Object
Returns the value of attribute source_output.
-
#target_output ⇒ Object
Returns the value of attribute target_output.
Instance Method Summary collapse
-
#initialize(processed_diff, output_file_name) ⇒ Base
constructor
A new instance of Base.
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
#file ⇒ Object
Returns the value of attribute file.
130 131 132 |
# File 'lib/origen/utility/file_diff.rb', line 130 def file @file end |
#source_output ⇒ Object
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_output ⇒ Object
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 |