Class: TRuby::ValidationConfig
- Inherits:
-
Object
- Object
- TRuby::ValidationConfig
- Defined in:
- lib/t_ruby/runtime_validator.rb
Overview
Configuration for runtime validation
Instance Attribute Summary collapse
-
#log_violations ⇒ Object
Returns the value of attribute log_violations.
-
#raise_on_error ⇒ Object
Returns the value of attribute raise_on_error.
-
#strict_mode ⇒ Object
Returns the value of attribute strict_mode.
-
#validate_all ⇒ Object
Returns the value of attribute validate_all.
-
#validate_public_only ⇒ Object
Returns the value of attribute validate_public_only.
Instance Method Summary collapse
-
#initialize ⇒ ValidationConfig
constructor
A new instance of ValidationConfig.
Constructor Details
#initialize ⇒ ValidationConfig
Returns a new instance of ValidationConfig.
9 10 11 12 13 14 15 |
# File 'lib/t_ruby/runtime_validator.rb', line 9 def initialize @validate_all = true @validate_public_only = false @raise_on_error = true @log_violations = false @strict_mode = false end |
Instance Attribute Details
#log_violations ⇒ Object
Returns the value of attribute log_violations.
7 8 9 |
# File 'lib/t_ruby/runtime_validator.rb', line 7 def log_violations @log_violations end |
#raise_on_error ⇒ Object
Returns the value of attribute raise_on_error.
6 7 8 |
# File 'lib/t_ruby/runtime_validator.rb', line 6 def raise_on_error @raise_on_error end |
#strict_mode ⇒ Object
Returns the value of attribute strict_mode.
7 8 9 |
# File 'lib/t_ruby/runtime_validator.rb', line 7 def strict_mode @strict_mode end |
#validate_all ⇒ Object
Returns the value of attribute validate_all.
6 7 8 |
# File 'lib/t_ruby/runtime_validator.rb', line 6 def validate_all @validate_all end |
#validate_public_only ⇒ Object
Returns the value of attribute validate_public_only.
6 7 8 |
# File 'lib/t_ruby/runtime_validator.rb', line 6 def validate_public_only @validate_public_only end |