From f26900a5d9e520e137284962017ebe6675cccbf5 Mon Sep 17 00:00:00 2001 From: Dan Kubb Date: Sun, 8 Sep 2013 22:28:08 -0700 Subject: [PATCH] Move instance method below constant and class method --- lib/mutant/predicate/attribute.rb | 32 +++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/lib/mutant/predicate/attribute.rb b/lib/mutant/predicate/attribute.rb index 185ccd06..03df9d5f 100644 --- a/lib/mutant/predicate/attribute.rb +++ b/lib/mutant/predicate/attribute.rb @@ -44,22 +44,6 @@ module Mutant # Equality based attribute predicate class Equality < self - # Test for match - # - # @param [Object] object - # - # @return [true] - # if attribute value matches expectation - # - # @return [false] - # otherwise - # - # @api private - # - def match?(object) - expectation.eql?(value(object)) - end - PATTERN = /\A(code):([[:xdigit:]]{1,6})\z/.freeze # Test if class handles string @@ -80,6 +64,22 @@ module Mutant new(match[1].to_sym, match[2]) end + # Test for match + # + # @param [Object] object + # + # @return [true] + # if attribute value matches expectation + # + # @return [false] + # otherwise + # + # @api private + # + def match?(object) + expectation.eql?(value(object)) + end + end # Equality end # Attribute end # Filter