Class: Mutant::AST::Meta::Const Private

Inherits:
Object
  • Object
show all
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

Methods included from NamedChildren

included

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

Returns:

  • (Boolean)


19
20
21
# File 'lib/mutant/ast/meta/const.rb', line 19

def possible_top_level?
  base.nil? || n_cbase?(base)
end