Class: Mutest::AST::Meta::Const Private
- Inherits:
-
Object
- Object
- Mutest::AST::Meta::Const
- Includes:
- NamedChildren, NodePredicates
- Defined in:
- lib/mutest/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
16 17 18 |
# File 'lib/mutest/ast/meta/const.rb', line 16 def possible_top_level? base.nil? || n_cbase?(base) end |