Class: Police::Labels::UnsafeString
- Inherits:
-
DataFlow::Label
- Object
- DataFlow::Label
- Police::Labels::UnsafeString
- Defined in:
- lib/police/labels/unsafe_string.rb
Overview
Marks strings that are read from the outside environment with no sanitization.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.autoflow? ⇒ Boolean
8 9 10 |
# File 'lib/police/labels/unsafe_string.rb', line 8 def self.autoflow? true end |
.return_hook(method_name) ⇒ Object
18 19 20 |
# File 'lib/police/labels/unsafe_string.rb', line 18 def self.return_hook(method_name) nil end |
.yield_args_hook(method_name) ⇒ Object
23 24 25 |
# File 'lib/police/labels/unsafe_string.rb', line 23 def self.yield_args_hook(method_name) nil end |
Instance Method Details
#accept?(data) ⇒ Boolean
13 14 15 |
# File 'lib/police/labels/unsafe_string.rb', line 13 def accept?(data) data.kind_of? String end |