Sha256: 45ee5728654063eac827f10f64c38c4e49d881cce3479071da48bd2cc817c9c5

Contents?: true

Size: 453 Bytes

Versions: 55

Compression:

Stored size: 453 Bytes

Contents

# frozen_string_literal: true

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

        NAME_INDEX = 1
        SYMBOL     = '.'

        # 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

55 entries across 55 versions & 1 rubygems

Version Path
mutant-0.11.4 lib/mutant/subject/method/singleton.rb
mutant-0.11.3 lib/mutant/subject/method/singleton.rb
mutant-0.11.2 lib/mutant/subject/method/singleton.rb
mutant-0.11.1 lib/mutant/subject/method/singleton.rb
mutant-0.11.0 lib/mutant/subject/method/singleton.rb
mutant-0.10.35 lib/mutant/subject/method/singleton.rb
mutant-0.10.34 lib/mutant/subject/method/singleton.rb
mutant-0.10.33 lib/mutant/subject/method/singleton.rb
mutant-0.10.32 lib/mutant/subject/method/singleton.rb
mutant-0.10.31 lib/mutant/subject/method/singleton.rb
mutant-0.10.30 lib/mutant/subject/method/singleton.rb
mutant-0.10.29 lib/mutant/subject/method/singleton.rb
mutant-0.10.28 lib/mutant/subject/method/singleton.rb
mutant-0.10.27 lib/mutant/subject/method/singleton.rb
mutant-0.10.26 lib/mutant/subject/method/singleton.rb
mutant-0.10.25 lib/mutant/subject/method/singleton.rb
mutant-0.10.24 lib/mutant/subject/method/singleton.rb
mutant-0.10.23 lib/mutant/subject/method/singleton.rb
mutant-0.10.22 lib/mutant/subject/method/singleton.rb
mutant-0.10.21 lib/mutant/subject/method/singleton.rb