Class: Fastererer::MethodCallScanner
- Inherits:
-
Object
- Object
- Fastererer::MethodCallScanner
- Includes:
- Offensive, SymbolToProcCheck
- Defined in:
- lib/fastererer/scanners/method_call_scanner.rb
Instance Attribute Summary collapse
-
#element ⇒ Object
readonly
Returns the value of attribute element.
Attributes included from Offensive
Instance Method Summary collapse
-
#initialize(element) ⇒ MethodCallScanner
constructor
A new instance of MethodCallScanner.
- #method_call ⇒ Object
Methods included from Offensive
Constructor Details
#initialize(element) ⇒ MethodCallScanner
Returns a new instance of MethodCallScanner.
31 32 33 34 |
# File 'lib/fastererer/scanners/method_call_scanner.rb', line 31 def initialize(element) @element = element check_offense end |
Instance Attribute Details
#element ⇒ Object (readonly)
Returns the value of attribute element.
29 30 31 |
# File 'lib/fastererer/scanners/method_call_scanner.rb', line 29 def element @element end |
Instance Method Details
#method_call ⇒ Object
36 37 38 |
# File 'lib/fastererer/scanners/method_call_scanner.rb', line 36 def method_call @method_call ||= MethodCall.build(element) end |