Module: Mutant::AST::NamedChildren Private

Included in:
Meta::Const, Meta::Optarg, Meta::Resbody, Meta::Send, Meta::Symbol, Mutator::Node
Defined in:
lib/mutant/ast/named_children.rb

Overview

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

Helper methods to define named children

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(host) ⇒ undefined

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

Hook called when module gets included

Parameters:

  • host (Class, Module)

Returns:

  • (undefined)


14
15
16
17
18
19
# File 'lib/mutant/ast/named_children.rb', line 14

def self.included(host)
  host.class_eval do
    include InstanceMethods
    extend ClassMethods
  end
end