diff --git a/lib/rubocop/cop/mixin/index_method.rb b/lib/rubocop/cop/mixin/index_method.rb index 23ba0daae5..529639c467 100644 --- a/lib/rubocop/cop/mixin/index_method.rb +++ b/lib/rubocop/cop/mixin/index_method.rb @@ -102,7 +102,7 @@ def execute_correction(corrector, node, correction) end # Internal helper class to hold match data - Captures = Struct.new( + Captures = ::Struct.new( :transformed_argname, :transforming_body_expr ) do @@ -112,7 +112,7 @@ def noop_transformation? end # Internal helper class to hold autocorrect data - Autocorrection = Struct.new(:match, :block_node, :leading, :trailing) do + Autocorrection = ::Struct.new(:match, :block_node, :leading, :trailing) do def self.from_each_with_object(node, match) new(match, node, 0, 0) end