Class: DB::Postgres::Native::Types::Text

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (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