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

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Namespace for send mutators rubocop:disable Metrics/ClassLength

Direct Known Subclasses

AttributeAssignment, Binary, Conditional

Defined Under Namespace

Classes: AttributeAssignment, Binary, Conditional

Constant Summary collapse

SELECTOR_REPLACEMENTS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

{
  :< =>          %i[== eql? equal?],
  :<= =>         %i[< == eql? equal?],
  :== =>         %i[eql? equal?],
  :=== =>        %i[is_a?],
  :=~ =>         %i[match?],
  :> =>          %i[== eql? equal?],
  :>= =>         %i[> == eql? equal?],
  __send__:      %i[public_send],
  all?:          %i[any?],
  any?:          %i[all?],
  at:            %i[fetch key?],
  fetch:         %i[key?],
  flat_map:      %i[map],
  gsub:          %i[sub],
  is_a?:         %i[instance_of?],
  kind_of?:      %i[instance_of?],
  map:           %i[each],
  match:         %i[match?],
  method:        %i[public_method],
  reverse_each:  %i[each],
  reverse_map:   %i[map each],
  reverse_merge: %i[merge],
  send:          %i[public_send __send__],
  to_a:          %i[to_ary],
  to_h:          %i[to_hash],
  to_i:          %i[to_int],
  to_s:          %i[to_str],
  values_at:     %i[fetch_values]
}.freeze.tap { |hash| hash.values(&:freeze) }
RECEIVER_SELECTOR_REPLACEMENTS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

{
  Date: {
    parse: %i[jd civil strptime iso8601 rfc3339 xmlschema rfc2822 rfc822 httpdate jisx0301]
  }.freeze
}.freeze
REGEXP_MATCH_METHODS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

%i[=~ match match?].freeze
REGEXP_START_WITH_NODES =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

%i[regexp_bos_anchor regexp_literal_literal].freeze
REGEXP_END_WITH_NODES =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

%i[regexp_literal_literal regexp_eos_anchor].freeze

Constants included from AST::Types

AST::Types::ALL, AST::Types::ASSIGNABLE_VARIABLES, AST::Types::BINARY_METHOD_OPERATORS, AST::Types::BLACKLIST, AST::Types::GENERATED, AST::Types::INDEX_OPERATORS, AST::Types::METHOD_OPERATORS, AST::Types::NOT_STANDALONE, AST::Types::OP_ASSIGN, AST::Types::REGEXP, AST::Types::UNARY_METHOD_OPERATORS

Constants inherited from Mutant::Mutator::Node

REGISTRY, 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

Instance Attribute Summary

Attributes inherited from Mutant::Mutator

#output

Method Summary

Methods inherited from Mutant::Mutator::Node

mutate

Methods included from AST::NamedChildren

included

Methods included from Procto

included