跳至内容 跳至搜索
方法
B
H
N
T

类公共方法

new(value)

# File activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 30
def initialize(value)
  @value = value
end

实例公共方法

binary?()

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

hex?()

# File activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 42
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 34
def to_s
  value
end