Module: Mutant::AST::Meta
- Defined in:
- lib/mutant/ast/meta.rb
Overview
Node meta information mixin
Defined Under Namespace
Classes: Generic, Node, Resbody, Send
Constant Summary collapse
- REGISTRY =
{}
Class Method Summary collapse
-
.for(node) ⇒ Meta
private
Return meta for node.
Class Method Details
.for(node) ⇒ Meta
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.
Return meta for node
16 17 18 |
# File 'lib/mutant/ast/meta.rb', line 16 def self.for(node) REGISTRY.fetch(node.type, Generic).new(node) end |