Sha256: f65df67d88044ab76f86b4dd4eb114783336edeb80aa9d2e52ac90a4375c5653

Contents?: true

Size: 427 Bytes

Versions: 8

Compression:

Stored size: 427 Bytes

Contents

module Mutest
  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 # Mutest

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mutest-0.0.9 lib/mutest/subject/method/singleton.rb
mutest-0.0.8 lib/mutest/subject/method/singleton.rb
mutest-0.0.7 lib/mutest/subject/method/singleton.rb
mutest-0.0.6 lib/mutest/subject/method/singleton.rb
mutest-0.0.5 lib/mutest/subject/method/singleton.rb
mutest-0.0.4 lib/mutest/subject/method/singleton.rb
mutest-0.0.3 lib/mutest/subject/method/singleton.rb
mutest-0.0.2 lib/mutest/subject/method/singleton.rb