Class: DB::Postgres::Native::Types::Text
- Inherits:
-
Object
- Object
- DB::Postgres::Native::Types::Text
- Defined in:
- lib/db/postgres/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.
29 30 31 |
# File 'lib/db/postgres/native/types.rb', line 29 def initialize(name = "TEXT") @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
33 34 35 |
# File 'lib/db/postgres/native/types.rb', line 33 def name @name end |
Instance Method Details
#parse(string) ⇒ Object
35 36 37 |
# File 'lib/db/postgres/native/types.rb', line 35 def parse(string) string end |