Fix rubocop warnings in Mutant::Mutator namespace

This commit is contained in:
Markus Schirp 2013-07-27 20:21:27 +02:00
parent 6d61420286
commit 1105d2c6ce
4 changed files with 5 additions and 5 deletions

View file

@ -154,7 +154,7 @@ module Mutant
#
def emit_child_update(index, node)
new_children = children.dup
new_children[index]=node
new_children[index] = node
emit_self(*new_children)
end

View file

@ -11,7 +11,7 @@ module Mutant
:or => :and,
}.freeze
handle *INVERSE.keys
handle(*INVERSE.keys)
children :left, :right

View file

@ -15,7 +15,7 @@ module Mutant
:lvasgn => ''
)
handle *MAP.keys
handle(*MAP.keys)
private

View file

@ -24,7 +24,7 @@ module Mutant
#
def self.register(type, mutator_class)
raise "duplicate type registration: #{type}" if registry.key?(type)
registry[type]=mutator_class
registry[type] = mutator_class
self
end
@ -42,7 +42,7 @@ module Mutant
def self.lookup(node)
type = node.type
registry.fetch(type) do
raise ArgumentError,"No mutator to handle: #{type.inspect}"
raise ArgumentError, "No mutator to handle: #{type.inspect}"
end
end