Class: SuperDiff::BinaryString::OperationTreeBuilders::BinaryString

Inherits:
SuperDiff::Basic::OperationTreeBuilders::MultilineString show all
Defined in:
lib/super_diff/binary_string/operation_tree_builders/binary_string.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Core::AbstractOperationTreeBuilder

#call

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

Returns:

  • (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