Class: DB::MariaDB::Native::Types::Text
- Inherits:
-
Object
- Object
- DB::MariaDB::Native::Types::Text
- Defined in:
- lib/db/mariadb/native/types.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name = "TEXT") ⇒ Text
constructor
A new instance of Text.
- #parse(string) ⇒ Object
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
#name ⇒ Object (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 |