From 86c44e882f312956c4c2db1e4451acbf92b1e24b Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Sat, 27 Apr 2013 18:29:55 +0200 Subject: [PATCH] Rename singleton subclass instance helper --- lib/mutant/mutation/filter.rb | 2 +- lib/mutant/singleton_methods.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mutant/mutation/filter.rb b/lib/mutant/mutation/filter.rb index 16986042..ba27a573 100644 --- a/lib/mutant/mutation/filter.rb +++ b/lib/mutant/mutation/filter.rb @@ -54,7 +54,7 @@ module Mutant end # Mutation filter matching all mutations - Mutant.define_singleton_subclass('ALL', self) do + Mutant.singleton_subclass_instance('ALL', self) do # Test for match # diff --git a/lib/mutant/singleton_methods.rb b/lib/mutant/singleton_methods.rb index bc8f6a6b..373b14c7 100644 --- a/lib/mutant/singleton_methods.rb +++ b/lib/mutant/singleton_methods.rb @@ -10,7 +10,7 @@ module Mutant # # @api private # - def self.define_singleton_subclass(name, superclass, &block) + def self.singleton_subclass_instance(name, superclass, &block) klass = Class.new(superclass) do def inspect; self.class.name; end