Class: Mutant::AST::Meta::Node

Inherits:
Module
  • Object
show all
Defined in:
lib/mutant/ast/meta.rb

Overview

Mixin to define meta nodes

Constant Summary collapse

CONCORD =
Concord.new(:node)

Instance Method Summary collapse

Instance 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)


34
35
36
37
38
39
# File 'lib/mutant/ast/meta.rb', line 34

def included(host)
  REGISTRY[type] = host
  host.class_eval do
    include CONCORD, NamedChildren
  end
end