class Perpetuity::Postgres::TableName
Public Class Methods
new(name)
click to toggle source
# File lib/perpetuity/postgres/table_name.rb, line 5 def initialize name @name = name.to_s raise InvalidTableName, "PostgreSQL table name cannot contain double quotes" if @name.include? '"' end
Public Instance Methods
==(other)
click to toggle source
# File lib/perpetuity/postgres/table_name.rb, line 14 def == other if other.is_a? String other == @name else to_s == other.to_s end end
to_s()
click to toggle source
# File lib/perpetuity/postgres/table_name.rb, line 10 def to_s @name.to_s.inspect end