Sha256: b9cde08be2abb6cc5b49588fde08058c6ab064160d3731cd8442630858d62266

Contents?: true

Size: 827 Bytes

Versions: 33

Compression:

Stored size: 827 Bytes

Contents

# encoding: utf-8

module Mutant
  class Mutator
    class Node
      # Namespace for define mutations
      class Define < self

      private

        # Emit mutations
        #
        # @return [undefined]
        #
        # @api private
        #
        def dispatch
          emit_arguments_mutations
          emit_body(RAISE)
          emit_body(nil)
          emit_body_mutations if body
        end

        # Mutator for instance method defines
        class Instance < self

          handle :def

          children :name, :arguments, :body

        end # Instance

        # Mutator for singleton method defines
        class Singleton < self

          handle :defs

          children :subject, :name, :arguments, :body

        end # Singelton

      end # Define
    end # Node
  end # Mutator
end # Mutant

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
mutant-0.5.19 lib/mutant/mutator/node/define.rb
mutant-0.5.18 lib/mutant/mutator/node/define.rb
mutant-0.5.17 lib/mutant/mutator/node/define.rb
mutant-0.5.16 lib/mutant/mutator/node/define.rb
mutant-0.5.15 lib/mutant/mutator/node/define.rb
mutant-0.5.14 lib/mutant/mutator/node/define.rb
mutant-0.5.13 lib/mutant/mutator/node/define.rb
mutant-0.5.12 lib/mutant/mutator/node/define.rb
mutant-0.5.11 lib/mutant/mutator/node/define.rb
mutant-0.5.10 lib/mutant/mutator/node/define.rb
mutant-0.5.9 lib/mutant/mutator/node/define.rb
mutant-0.5.8 lib/mutant/mutator/node/define.rb
mutant-0.5.7 lib/mutant/mutator/node/define.rb
mutant-0.5.6 lib/mutant/mutator/node/define.rb
mutant-0.5.5 lib/mutant/mutator/node/define.rb
mutant-0.5.4 lib/mutant/mutator/node/define.rb
mutant-0.5.3 lib/mutant/mutator/node/define.rb
mutant-0.5.2 lib/mutant/mutator/node/define.rb
mutant-0.5.1 lib/mutant/mutator/node/define.rb
mutant-0.5.0 lib/mutant/mutator/node/define.rb