Module: Mutant::AST::NamedChildren

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

Overview

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)


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

def self.included(host)
  super

  host.class_eval do
    include InstanceMethods
    extend ClassMethods
  end
end