Prefer Array#at over Array#[] for fixnum index access
This commit is contained in:
parent
2813c081dc
commit
da30228b94
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ module Mutant
|
||||||
#
|
#
|
||||||
def self.define_named_child(name, index)
|
def self.define_named_child(name, index)
|
||||||
define_method("#{name}") do
|
define_method("#{name}") do
|
||||||
children[index]
|
children.at(index)
|
||||||
end
|
end
|
||||||
|
|
||||||
define_method("emit_#{name}_mutations") do
|
define_method("emit_#{name}_mutations") do
|
||||||
|
|
Loading…
Add table
Reference in a new issue