Class: Rules::Config

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/rules/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_falseObject

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_nilObject

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

Returns:

  • (Boolean)


17
18
19
# File 'lib/rules/config.rb', line 17

def errors_are_false?
  !!errors_are_false
end

#missing_attributes_are_nil?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/rules/config.rb', line 13

def missing_attributes_are_nil?
  !!missing_attributes_are_nil
end