Module: Fasterer::Offensive
- Included in:
- MethodCallScanner, MethodDefinitionScanner, RescueCallScanner
- Defined in:
- lib/fasterer/scanners/offensive.rb
Instance Attribute Summary collapse
-
#offense ⇒ Object
Returns the value of attribute offense.
Instance Method Summary collapse
- #offensive? ⇒ Boolean (also: #offense_detected?)
Instance Attribute Details
#offense ⇒ Object
Returns the value of attribute offense.
5 6 7 |
# File 'lib/fasterer/scanners/offensive.rb', line 5 def offense @offense end |
Instance Method Details
#offensive? ⇒ Boolean Also known as: offense_detected?
7 8 9 |
# File 'lib/fasterer/scanners/offensive.rb', line 7 def offensive? !!offense end |