Class: Attributary::Config
- Inherits:
-
Object
- Object
- Attributary::Config
- Defined in:
- lib/attributary/config.rb
Instance Attribute Summary collapse
-
#collection_error ⇒ Object
Returns the value of attribute collection_error.
-
#dsl_name ⇒ Object
Returns the value of attribute dsl_name.
-
#raise_errors ⇒ Object
Returns the value of attribute raise_errors.
-
#strict_mode ⇒ Object
Returns the value of attribute strict_mode.
-
#validation_error ⇒ Object
Returns the value of attribute validation_error.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #raise_errors? ⇒ Boolean
- #strict_mode? ⇒ Boolean
Constructor Details
#initialize ⇒ Config
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_error ⇒ Object
Returns the value of attribute collection_error.
16 17 18 |
# File 'lib/attributary/config.rb', line 16 def collection_error @collection_error end |
#dsl_name ⇒ Object
Returns the value of attribute dsl_name.
16 17 18 |
# File 'lib/attributary/config.rb', line 16 def dsl_name @dsl_name end |
#raise_errors ⇒ Object
Returns the value of attribute raise_errors.
16 17 18 |
# File 'lib/attributary/config.rb', line 16 def raise_errors @raise_errors end |
#strict_mode ⇒ Object
Returns the value of attribute strict_mode.
16 17 18 |
# File 'lib/attributary/config.rb', line 16 def strict_mode @strict_mode end |
#validation_error ⇒ Object
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
25 26 27 |
# File 'lib/attributary/config.rb', line 25 def raise_errors? @raise_errors end |
#strict_mode? ⇒ Boolean
29 30 31 |
# File 'lib/attributary/config.rb', line 29 def strict_mode? @strict_mode end |