Class: SuperDiff::BinaryString::OperationTreeBuilders::BinaryString
- Inherits:
-
SuperDiff::Basic::OperationTreeBuilders::MultilineString
- Object
- Core::AbstractOperationTreeBuilder
- SuperDiff::Basic::OperationTreeBuilders::MultilineString
- SuperDiff::BinaryString::OperationTreeBuilders::BinaryString
- Defined in:
- lib/super_diff/binary_string/operation_tree_builders/binary_string.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ BinaryString
constructor
A new instance of BinaryString.
Methods inherited from Core::AbstractOperationTreeBuilder
Constructor Details
#initialize(*args) ⇒ BinaryString
Returns a new instance of BinaryString.
14 15 16 17 18 19 |
# File 'lib/super_diff/binary_string/operation_tree_builders/binary_string.rb', line 14 def initialize(*args) args.first[:expected] = binary_to_hex(args.first[:expected]) args.first[:actual] = binary_to_hex(args.first[:actual]) super end |
Class Method Details
.applies_to?(expected, actual) ⇒ Boolean
10 11 12 |
# File 'lib/super_diff/binary_string/operation_tree_builders/binary_string.rb', line 10 def self.applies_to?(expected, actual) SuperDiff::BinaryString.applies_to?(expected, actual) end |