Class: DICOM::DataElement

Inherits:
Object
  • Object
show all
Defined in:
lib/metamri/dicom_additions.rb

Overview

Reopen DataElement to compare

Instance Method Summary collapse

Instance Method Details

#eql?(other) ⇒ Boolean

Compare data elements on their tag and value

Returns:

  • (Boolean)


62
63
64
# File 'lib/metamri/dicom_additions.rb', line 62

def eql?(other)
  @tag == other.instance_eval("@tag") && @value == other.value && @bin == other.instance_eval("@bin")
end