класс ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Bit::Data
Атрибуты
value[R]
TODO Изменить на private после отказа от поддержки Ruby 2.2. Обходной путь для предупреждения Ruby 2.2 «private attribute?».
Открытые методы класса
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 28 def initialize(value) @value = value end
Открытые методы экземпляра
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 36 def binary? /\A[01]*\Z/.match?(value) end
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 40 def hex? /\A[0-9A-F]*\Z/i.match?(value) end
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 32 def to_s value end
© 2004–2018 David Heinemeier Hansson
Licensed under the MIT License.