class ActiveModel::Type::Binary::Data

:nodoc:

def ==(other)

def ==(other)
  other == to_s || super
end

def hex

def hex
  @value.unpack1("H*")
end

def initialize(value)

:nodoc:
def initialize(value)
  value = value.to_s
  value = value.b unless value.encoding == Encoding::BINARY
  @value = value
end

def to_s

def to_s
  @value
end