Class: Mutant::AST::Meta::Const Private
- Inherits:
-
Object
- Object
- Mutant::AST::Meta::Const
- Includes:
- NamedChildren, NodePredicates
- Defined in:
- lib/mutant/ast/meta/const.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Metadata for const nodes
Instance Method Summary collapse
-
#possible_top_level? ⇒ Boolean
private
Test if AST node is possibly a top level constant.
Methods included from NamedChildren
Instance Method Details
#possible_top_level? ⇒ Boolean
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.
Test if AST node is possibly a top level constant
19 20 21 |
# File 'lib/mutant/ast/meta/const.rb', line 19 def possible_top_level? base.nil? || n_cbase?(base) end |