Module: Fastererer::Offensive

Included in:
MethodCallScanner, MethodDefinitionScanner, RescueCallScanner
Defined in:
lib/fastererer/scanners/offensive.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#offenseObject

Returns the value of attribute offense.



7
8
9
# File 'lib/fastererer/scanners/offensive.rb', line 7

def offense
  @offense
end

Instance Method Details

#offensive?Boolean Also known as: offense_detected?

Returns:

  • (Boolean)


9
10
11
# File 'lib/fastererer/scanners/offensive.rb', line 9

def offensive?
  !!offense
end