Module: Validatable::Requireable::ClassMethods

Defined in:
lib/gems/validatable-1.6.7/lib/requireable.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#required_optionsObject



8
9
10
# File 'lib/gems/validatable-1.6.7/lib/requireable.rb', line 8

def required_options
  @required_options ||= []
end

#requires(*args) ⇒ Object



4
5
6
# File 'lib/gems/validatable-1.6.7/lib/requireable.rb', line 4

def requires(*args)
  required_options.concat args        
end