Class: PgObjects::ParsedObject::BaseType
- Defined in:
- lib/pg_objects/parsed_object/base_type.rb
Overview
Base (scalar) TYPE object representation (CREATE TYPE with I/O functions or a shell CREATE TYPE without attributes) — parsed as a define_stmt.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from PgObjects::ParsedObject::Base
Instance Method Details
#name ⇒ Object
8 9 10 |
# File 'lib/pg_objects/parsed_object/base_type.rb', line 8 def name extract_name { stmt.define_stmt.defnames.last.string.sval } end |