Module: Mutations

Defined in:
lib/mutations.rb,
lib/mutations/errors.rb,
lib/mutations/command.rb,
lib/mutations/outcome.rb,
lib/mutations/version.rb,
lib/mutations/exception.rb,
lib/mutations/date_filter.rb,
lib/mutations/duck_filter.rb,
lib/mutations/file_filter.rb,
lib/mutations/hash_filter.rb,
lib/mutations/time_filter.rb,
lib/mutations/array_filter.rb,
lib/mutations/float_filter.rb,
lib/mutations/input_filter.rb,
lib/mutations/model_filter.rb,
lib/mutations/string_filter.rb,
lib/mutations/symbol_filter.rb,
lib/mutations/boolean_filter.rb,
lib/mutations/integer_filter.rb,
lib/mutations/additional_filter.rb

Defined Under Namespace

Classes: AdditionalFilter, ArrayFilter, BooleanFilter, Command, DateFilter, DefaultErrorMessageCreator, DuckFilter, ErrorArray, ErrorAtom, ErrorHash, FileFilter, FloatFilter, HashFilter, InputFilter, IntegerFilter, ModelFilter, Outcome, StringFilter, SymbolFilter, TimeFilter, ValidationException

Constant Summary collapse

VERSION =
"0.9.1"

Class Method Summary collapse

Class Method Details

.cache_constants=(val) ⇒ Object


37
38
39
# File 'lib/mutations.rb', line 37

def cache_constants=(val)
  @cache_constants = val
end

.cache_constants?Boolean

Returns:

  • (Boolean)

41
42
43
# File 'lib/mutations.rb', line 41

def cache_constants?
  @cache_constants
end

.error_message_creatorObject


29
30
31
# File 'lib/mutations.rb', line 29

def error_message_creator
  @error_message_creator ||= DefaultErrorMessageCreator.new
end

.error_message_creator=(creator) ⇒ Object


33
34
35
# File 'lib/mutations.rb', line 33

def error_message_creator=(creator)
  @error_message_creator = creator
end