Class: Rules::Config
Instance Attribute Summary collapse
-
#errors_are_false ⇒ Object
Returns the value of attribute errors_are_false.
-
#missing_attributes_are_nil ⇒ Object
Returns the value of attribute missing_attributes_are_nil.
Instance Method Summary collapse
- #errors_are_false? ⇒ Boolean
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #missing_attributes_are_nil? ⇒ Boolean
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
8 9 10 11 |
# File 'lib/rules/config.rb', line 8 def initialize self.errors_are_false = true self.missing_attributes_are_nil = true end |
Instance Attribute Details
#errors_are_false ⇒ Object
Returns the value of attribute errors_are_false.
6 7 8 |
# File 'lib/rules/config.rb', line 6 def errors_are_false @errors_are_false end |
#missing_attributes_are_nil ⇒ Object
Returns the value of attribute missing_attributes_are_nil.
6 7 8 |
# File 'lib/rules/config.rb', line 6 def missing_attributes_are_nil @missing_attributes_are_nil end |
Instance Method Details
#errors_are_false? ⇒ Boolean
17 18 19 |
# File 'lib/rules/config.rb', line 17 def errors_are_false? !!errors_are_false end |
#missing_attributes_are_nil? ⇒ Boolean
13 14 15 |
# File 'lib/rules/config.rb', line 13 def missing_attributes_are_nil? !!missing_attributes_are_nil end |