Sha256: 6676777ccfc72f31c8e7a029816b8b37df84a203ec9ca6aabd5cf78f9bfe541b

Contents?: true

Size: 429 Bytes

Versions: 8

Compression:

Stored size: 429 Bytes

Contents

module Mutant
  class Subject
    class Method
      # Singleton method subjects
      class Singleton < self

        NAME_INDEX = 1
        SYMBOL     = '.'.freeze

        # Prepare subject for mutation insertion
        #
        # @return [self]
        def prepare
          scope.singleton_class.__send__(:undef_method, name)
          self
        end

      end # Singleton
    end # Method
  end # Subject
end # Mutant

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mutant-0.8.16 lib/mutant/subject/method/singleton.rb
mutant-0.8.15 lib/mutant/subject/method/singleton.rb
mutant-0.8.14 lib/mutant/subject/method/singleton.rb
mutant-0.8.13 lib/mutant/subject/method/singleton.rb
mutant-0.8.12 lib/mutant/subject/method/singleton.rb
mutant-0.8.11 lib/mutant/subject/method/singleton.rb
mutant-0.8.10 lib/mutant/subject/method/singleton.rb
mutant-0.8.9 lib/mutant/subject/method/singleton.rb