Class: Mutant::Mutator::Node::Send

Inherits:
Mutant::Mutator::Node show all
Defined in:
lib/mutant/mutator/node/send.rb,
lib/mutant/mutator/node/send/index.rb,
lib/mutant/mutator/node/send/binary.rb,
lib/mutant/mutator/node/send/attribute_assignment.rb

Overview

Namespace for send mutators

Direct Known Subclasses

AttributeAssignment, Binary, Index

Defined Under Namespace

Classes: AttributeAssignment, Binary, Index

Constant Summary collapse

SELECTOR_REPLACEMENTS =
IceNine.deep_freeze(
  reverse_map:  [:map, :each],
  reverse_each: [:each],
  map:          [:each],
  send:         [:public_send],
  gsub:         [:sub],
  eql?:         [:equal?],
  :== =>        [:eql?, :equal?]
)
INDEX_REFERENCE =
:[]
INDEX_ASSIGN =
:[]=
ASSIGN_SUFFIX =
'='.freeze

Constants included from NodeHelpers

NodeHelpers::INFINITY, NodeHelpers::NAN, NodeHelpers::NEGATIVE_INFINITY, NodeHelpers::N_EMPTY, NodeHelpers::N_FALSE, NodeHelpers::N_NIL, NodeHelpers::N_SELF, NodeHelpers::N_TRUE, NodeHelpers::RAISE

Instance Attribute Summary

Attributes inherited from Mutant::Mutator

#input, #parent

Method Summary

Methods included from NodeHelpers

#n_not, s

Methods inherited from Mutant::Mutator

each