class ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Bit::Data

def hex?

def hex?
  /\A[0-9A-F]*\Z/i.match?(value)
end