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

Inherits:
Mutant::Mutator::Node show all
Includes:
AST::Types
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],
  kind_of?:      [:instance_of?],
  is_a?:         [:instance_of?],
  reverse_each:  [:each],
  reverse_merge: [:merge],
  map:           [:each],
  send:          [:public_send, :__send__],
  __send__:      [:public_send],
  gsub:          [:sub],
  eql?:          [:equal?],
  to_s:          [:to_str],
  to_i:          [:to_int],
  to_a:          [:to_ary],
  :== =>         [:eql?, :equal?],
  :>= =>         [:>, :==, :eql?, :equal?],
  :<= =>         [:<, :==, :eql?, :equal?],
  :> =>          [:==, :>=, :eql?, :equal?],
  :< =>          [:==, :<=, :eql?, :equal?]
)

Constants included from AST::Types

AST::Types::ALL, AST::Types::ASSIGNABLE_VARIABLES, AST::Types::BINARY_METHOD_OPERATORS, AST::Types::BLACKLIST, AST::Types::EXTRA, AST::Types::INDEX_ASSIGN_OPERATOR, AST::Types::INDEX_OPERATORS, AST::Types::METHOD_OPERATORS, AST::Types::MISSING, AST::Types::NOT_ASSIGNABLE, AST::Types::NOT_STANDALONE, AST::Types::OPERATOR_METHODS, AST::Types::OP_ASSIGN, AST::Types::UNARY_METHOD_OPERATORS

Constants inherited from Mutant::Mutator::Node

TAUTOLOGY

Constants included from AST::Nodes

AST::Nodes::N_EMPTY, AST::Nodes::N_EMPTY_SUPER, AST::Nodes::N_FALSE, AST::Nodes::N_INFINITY, AST::Nodes::N_NAN, AST::Nodes::N_NEGATIVE_INFINITY, AST::Nodes::N_NIL, AST::Nodes::N_RAISE, AST::Nodes::N_SELF, AST::Nodes::N_TRUE, AST::Nodes::N_ZSUPER

Constants inherited from Mutant::Mutator

REGISTRY

Instance Attribute Summary

Attributes inherited from Mutant::Mutator

#input, #parent

Method Summary

Methods included from AST::NamedChildren

included

Methods inherited from Mutant::Mutator

each