Module: Validatable::Requireable::ClassMethods

Defined in:
lib/requireable.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#required_optionsObject



8
9
10
# File 'lib/requireable.rb', line 8

def required_options
  @required_options ||= []
end

#requires(*args) ⇒ Object



4
5
6
# File 'lib/requireable.rb', line 4

def requires(*args)
  required_options.concat args        
end