Class: ActiveRecord::ConnectionAdapters::PostgreSQL::OID::SpecializedString

Inherits:
Type::String show all
Defined in:
activerecord/lib/active_record/connection_adapters/postgresql/oid/specialized_string.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Attributes inherited from Type::Value

#limit, #precision, #scale

Instance Method Summary collapse

Methods inherited from Type::String

#changed_in_place?, #type_cast_for_database

Methods inherited from Type::Value

#==, #binary?, #changed?, #changed_in_place?, #hash, #klass, #number?, #type_cast_for_database, #type_cast_for_schema, #type_cast_from_database, #type_cast_from_user

Constructor Details

#initialize(type) ⇒ SpecializedString

Returns a new instance of SpecializedString.


8
9
10
# File 'activerecord/lib/active_record/connection_adapters/postgresql/oid/specialized_string.rb', line 8

def initialize(type)
  @type = type
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type


6
7
8
# File 'activerecord/lib/active_record/connection_adapters/postgresql/oid/specialized_string.rb', line 6

def type
  @type
end

Instance Method Details

#text?Boolean

Returns:

  • (Boolean)

12
13
14
# File 'activerecord/lib/active_record/connection_adapters/postgresql/oid/specialized_string.rb', line 12

def text?
  false
end