Method: PgGraph::Type::Database#initialize
- Defined in:
- lib/pg_graph/type/type.rb
#initialize(name, reflector = PgGraph::Reflector.new) ⇒ Database
Returns a new instance of Database.
74 75 76 77 78 79 80 |
# File 'lib/pg_graph/type/type.rb', line 74 def initialize(name, reflector = PgGraph::Reflector.new) constrain name, String constrain reflector, PgGraph::Reflector super(nil, name) @catalog = PgCatalogSchema.new(self) @reflector = reflector end |