Sha256: e39547033f6968102f2259345dc585c95bb35b616a70b20d2ad16e923e6b20ab
Contents?: true
Size: 468 Bytes
Versions: 15
Compression:
Stored size: 468 Bytes
Contents
# minimal class to keep schema and table name separate module PgSync class Table attr_reader :schema, :name def initialize(schema, name) @schema = schema @name = name end def full_name "#{schema}.#{name}" end def eql?(other) other.schema == schema && other.name == name end # override hash when overriding eql? def hash [schema, name].hash end def to_s full_name end end end
Version data entries
15 entries across 15 versions & 1 rubygems