Class: Attributary::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/attributary/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



17
18
19
20
21
22
23
# File 'lib/attributary/config.rb', line 17

def initialize
  @validation_error = ::Attributary::ValidationError
  @collection_error = ::Attributary::CollectionValidationError
  @strict_mode = false
  @dsl_name = :attribute
  @raise_errors = false
end

Instance Attribute Details

#collection_errorObject

Returns the value of attribute collection_error.



16
17
18
# File 'lib/attributary/config.rb', line 16

def collection_error
  @collection_error
end

#dsl_nameObject

Returns the value of attribute dsl_name.



16
17
18
# File 'lib/attributary/config.rb', line 16

def dsl_name
  @dsl_name
end

#raise_errorsObject

Returns the value of attribute raise_errors.



16
17
18
# File 'lib/attributary/config.rb', line 16

def raise_errors
  @raise_errors
end

#strict_modeObject

Returns the value of attribute strict_mode.



16
17
18
# File 'lib/attributary/config.rb', line 16

def strict_mode
  @strict_mode
end

#validation_errorObject

Returns the value of attribute validation_error.



16
17
18
# File 'lib/attributary/config.rb', line 16

def validation_error
  @validation_error
end

Instance Method Details

#raise_errors?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/attributary/config.rb', line 25

def raise_errors?
  @raise_errors
end

#strict_mode?Boolean

Returns:

  • (Boolean)


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

def strict_mode?
  @strict_mode
end