Module: Validate::Arguments

Defined Under Namespace

Modules: ClassMethods Classes: ArgumentsGuard

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



42
43
44
45
46
47
48
49
# File 'lib/validate/arguments.rb', line 42

def self.included(base)
  base.extend(ClassMethods)
  base.instance_exec do
    @args = {}
    prepend(@methods_guard = Module.new)
    singleton_class.prepend(@singleton_methods_guard = Module.new)
  end
end