Class: Mutant::AST::Meta::Node
- Inherits:
-
Module
- Object
- Module
- Mutant::AST::Meta::Node
- Defined in:
- lib/mutant/ast/meta.rb
Overview
Mixin to define meta nodes
Constant Summary collapse
- CONCORD =
Concord.new(:node)
Instance Method Summary collapse
-
#included(host) ⇒ undefined
private
Hook called when module gets included.
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
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 |