Sha256: 526cbce0297363b8918b6dc8d2937a93142efae8dddc3d70b0c6ce5c74b94f93

Contents?: true

Size: 808 Bytes

Versions: 15

Compression:

Stored size: 808 Bytes

Contents

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

15 entries across 15 versions & 1 rubygems

Version Path
mutant-0.5.22 lib/mutant/mutator/node/define.rb
mutant-0.5.21 lib/mutant/mutator/node/define.rb
mutant-0.5.20 lib/mutant/mutator/node/define.rb
mutant-0.3.0.beta21 lib/mutant/mutator/node/define.rb
mutant-0.3.0.beta20 lib/mutant/mutator/node/define.rb
mutant-0.3.0.beta19 lib/mutant/mutator/node/define.rb
mutant-0.3.0.beta18 lib/mutant/mutator/node/define.rb
mutant-0.3.0.beta17 lib/mutant/mutator/node/define.rb
mutant-0.3.0.beta16 lib/mutant/mutator/node/define.rb
mutant-0.3.0.beta15 lib/mutant/mutator/node/define.rb
mutant-0.3.0.beta14 lib/mutant/mutator/node/define.rb
mutant-0.3.0.beta13 lib/mutant/mutator/node/define.rb
mutant-0.3.0.beta12 lib/mutant/mutator/node/define.rb
mutant-0.3.0.beta11 lib/mutant/mutator/node/define.rb
mutant-0.3.0.beta10 lib/mutant/mutator/node/define.rb