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.



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

def offense
  @offense
end

Instance Method Details

#offensive?Boolean Also known as: offense_detected?

Returns:

  • (Boolean)


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

def offensive?
  !!offense
end