From da30228b946f00e6791981957b8ce7c8962293b9 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Fri, 21 Jun 2013 18:38:15 +0200 Subject: [PATCH] Prefer Array#at over Array#[] for fixnum index access --- lib/mutant/mutator/node.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mutant/mutator/node.rb b/lib/mutant/mutator/node.rb index a1066ece..47f3143d 100644 --- a/lib/mutant/mutator/node.rb +++ b/lib/mutant/mutator/node.rb @@ -28,7 +28,7 @@ module Mutant # def self.define_named_child(name, index) define_method("#{name}") do - children[index] + children.at(index) end define_method("emit_#{name}_mutations") do