Parent

Class Index [+]

Quicksearch

Sequel::Plugins::ValidationClassMethods::ClassMethods::Generator

The Generator class is used to generate validation definitions using the validates {} idiom.

Public Class Methods

new(receiver ,&block) click to toggle source

Initializes a new generator.

    # File lib/sequel/plugins/validation_class_methods.rb, line 45
45:           def initialize(receiver ,&block)
46:             @receiver = receiver
47:             instance_eval(&block)
48:           end

Public Instance Methods

method_missing(m, *args, &block) click to toggle source

Delegates method calls to the receiver by calling receiver.validates_xxx.

    # File lib/sequel/plugins/validation_class_methods.rb, line 51
51:           def method_missing(m, *args, &block)
52:             @receiver.send(:"validates_#{m}", *args, &block)
53:           end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.