Class: PgFuncall::PgType
- Inherits:
-
Object
- Object
- PgFuncall::PgType
- Defined in:
- lib/pg_funcall/type_map.rb
Instance Method Summary collapse
-
#initialize(pginfo, ar_type) ⇒ PgType
constructor
A new instance of PgType.
- #to_s ⇒ Object
Constructor Details
#initialize(pginfo, ar_type) ⇒ PgType
Returns a new instance of PgType.
24 25 26 27 |
# File 'lib/pg_funcall/type_map.rb', line 24 def initialize(pginfo, ar_type) @pginfo = pginfo @ar_type = ar_type end |
Instance Method Details
#to_s ⇒ Object
29 30 31 |
# File 'lib/pg_funcall/type_map.rb', line 29 def to_s array ? "#{name}[]" : name end |