Class: Fasterer::MethodCallScanner
- Inherits:
-
Object
- Object
- Fasterer::MethodCallScanner
- Includes:
- Offensive
- Defined in:
- lib/fasterer/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.
11 12 13 14 |
# File 'lib/fasterer/scanners/method_call_scanner.rb', line 11 def initialize(element) @element = element check_offense end |
Instance Attribute Details
#element ⇒ Object (readonly)
Returns the value of attribute element.
9 10 11 |
# File 'lib/fasterer/scanners/method_call_scanner.rb', line 9 def element @element end |
Instance Method Details
#method_call ⇒ Object
16 17 18 |
# File 'lib/fasterer/scanners/method_call_scanner.rb', line 16 def method_call @method_call ||= MethodCall.new(element) end |