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

Inherits:
Object
  • Object
show all
Includes:
NamedChildren, NodePredicates
Defined in:
lib/mutant/ast/meta/const.rb

Overview

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)


17
18
19
# File 'lib/mutant/ast/meta/const.rb', line 17

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