Methods

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)

📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 30
            def initialize(value)
              @value = value
            end
🔎 See on GitHub

Instance Public methods

binary?()

📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 38
            def binary?
              /\A[01]*\Z/.match?(value)
            end
🔎 See on GitHub

hex?()

📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 42
            def hex?
              /\A[0-9A-F]*\Z/i.match?(value)
            end
🔎 See on GitHub

to_s()

📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 34
            def to_s
              value
            end
🔎 See on GitHub