Class: DB::MariaDB::Native::Types::Text

Inherits:
Object
  • Object
show all
Defined in:
lib/db/mariadb/native/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = "TEXT") ⇒ Text

Returns a new instance of Text.



14
15
16
# File 'lib/db/mariadb/native/types.rb', line 14

def initialize(name = "TEXT")
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



18
19
20
# File 'lib/db/mariadb/native/types.rb', line 18

def name
  @name
end

Instance Method Details

#parse(string) ⇒ Object



20
21
22
# File 'lib/db/mariadb/native/types.rb', line 20

def parse(string)
  string
end