Module: Contrast::Agent::Protect::Rule::InputClassification::Utils
- Included in:
- LRUCache, Statistics
- Defined in:
- lib/contrast/agent/protect/rule/input_classification/utils.rb
Overview
Utils module for Input Classification.
Instance Method Summary collapse
-
#safe_extract(object) ⇒ Object
Extracts data return as array from the cache.
Instance Method Details
#safe_extract(object) ⇒ Object
Extracts data return as array from the cache.
15 16 17 |
# File 'lib/contrast/agent/protect/rule/input_classification/utils.rb', line 15 def safe_extract object Array(object)[0] end |