Method: PgGraph::Type::Type#array_type

Defined in:
lib/pg_graph/type/type.rb

#array_type(schema = self.schema) ⇒ Object

Return array type of self. Schema defaults to the schema of self



207
208
209
210
# File 'lib/pg_graph/type/type.rb', line 207

def array_type(schema = self.schema)
  array_name = PgGraph.inflector.type2array(name)
  @array_type ||= schema[array_name] || ArrayType.new(schema, nil, self)
end