class Mv::Mysql::Validation::Format

Attributes

with[R]

Public Class Methods

new(table_name, column_name, opts) click to toggle source
Calls superclass method
# File lib/mv/mysql/validation/format.rb, line 9
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
Calls superclass method
# File lib/mv/mysql/validation/format.rb, line 17
def to_a
  super + [with.to_s]
end