ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Bit::Data Ruby on Rails 5.1.2 Class ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Bit::Data < Object activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb Methods B binary? H hex? N new T to_s Attributes [R] value TODO Change this to private once we've dropped Ruby 2.2 support. Workaround for Ruby 2.2 “private attribute?” warning. Class Public methods new(value) Link Source: show | on GitHub # File activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 28 def initialize(value) @value = value end Instance Public methods binary?() Link Source: show | on GitHub # File activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 36 def binary? /\A[01]*\Z/.match?(value) end hex?() Link Source: show | on GitHub # File activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 40 def hex? /\A[0-9A-F]*\Z/i.match?(value) end to_s() Link Source: show | on GitHub # File activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 32 def to_s value end