Class: RuboCop::Cop::IndexMethod::Captures

Inherits:
Struct
  • Object
show all
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

Returns:

  • (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