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.
30 31 32 33 |
# File 'lib/fastererer/scanners/method_call_scanner.rb', line 30 def initialize(element) @element = element check_offense end |
Instance Attribute Details
#element ⇒ Object (readonly)
Returns the value of attribute element.
28 29 30 |
# File 'lib/fastererer/scanners/method_call_scanner.rb', line 28 def element @element end |
Instance Method Details
#method_call ⇒ Object
35 36 37 |
# File 'lib/fastererer/scanners/method_call_scanner.rb', line 35 def method_call @method_call ||= MethodCall.new(element) end |