Class: RuboCop::Cop::IndexMethod::Captures
- Inherits:
-
Struct
- Object
- Struct
- RuboCop::Cop::IndexMethod::Captures
- Defined in:
- lib/rubocop/cop/mixin/index_method.rb
Overview
Internal helper class to hold match data
Instance Method Summary collapse
Instance Method Details
#noop_transformation? ⇒ Boolean
109 110 111 |
# File 'lib/rubocop/cop/mixin/index_method.rb', line 109 def noop_transformation? transforming_body_expr.lvar_type? && transforming_body_expr.children == [transformed_argname] end |