edge badge
Methods
B
H
N
T
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)
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 29
def initialize(value)
  @value = value
end
Instance Public methods
binary?()
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 37
def binary?
  /\A[01]*\Z/.match?(value)
end
hex?()
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 41
def hex?
  /\A[0-9A-F]*\Z/i.match?(value)
end
to_s()
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 33
def to_s
  value
end