File: validation.rb

package info (click to toggle)
ruby-valid 1.0.0-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, trixie
  • size: 124 kB
  • sloc: ruby: 309; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 188 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'validation/validator'

module Validation

  class << self
    private

    def included(mod)
      mod.module_eval do
        extend Validation::Rules
      end
    end
  end
end