class ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Bit
:nodoc:
:nodoc:
def cast_value(value)
def cast_value(value) if ::String === value case value when /^0x/i value[2..-1].hex.to_s(2) # Hexadecimal notation else value # Bit-string notation end else value.to_s end end
def serialize(value)
def serialize(value) Data.new(super) if value end
def type
:nodoc:
def type :bit end