Module: Fasterer::Offensive

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#offenseObject

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?

Returns:

  • (Boolean)


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

def offensive?
  !!offense
end