class Mv::Postgresql::Validation::Format

Attributes

with[R]

Public Class Methods

new(table_name, column_name, opts) click to toggle source
# File lib/mv/postgresql/validation/format.rb, line 13
def initialize(table_name, column_name, opts)
  opts = { with: opts } unless opts.is_a?(Hash)
  
  super(table_name, column_name, opts)

  @with = opts.with_indifferent_access[:with]
end

Public Instance Methods

to_a() click to toggle source
# File lib/mv/postgresql/validation/format.rb, line 21
def to_a
  super + [with.to_s]
end