Class: Contrast::Agent::Reporting::Settings::RulesArray

Inherits:
Array
  • Object
show all
Defined in:
lib/contrast/agent/reporting/settings/sensitive_data_masking.rb

Overview

Simple validation class for Rules Array.

Instance Method Summary collapse

Instance Method Details

#<<(item) ⇒ Object

Do not push anything except Rules instances. :<< method is called on object directly so this will make sure the data pushed is as expected.



109
110
111
112
113
# File 'lib/contrast/agent/reporting/settings/sensitive_data_masking.rb', line 109

def << item
  return itself unless item.instance_of?(Contrast::Agent::Reporting::Settings::SensitiveDataMaskingRule)

  super
end