class Themis::Validation::Validator

Simple structure to store information about methods called on {Themis::Validation validation module}. It saves name and arguments of validation method in order to apply it on model later.

Attributes

args[R]
name[R]

Public Class Methods

new(name, args) click to toggle source

@param [Symbol, String] name validation method name, e.g. “validates_presence_of” @param [Array] args arguments of method

# File lib/themis/validation/validator.rb, line 12
def initialize(name, args)
  @name, @args = name, args
end