Sha256: 1e757477b3576255a0b0b0ead3af5990dd195a30fc609b83f77d35e6fdf19f57

Contents?: true

Size: 493 Bytes

Versions: 8

Compression:

Stored size: 493 Bytes

Contents

module Mutest
  module AST
    # Node meta information mixin
    module Meta
      # Metadata for const nodes
      class Const
        include NamedChildren, Concord.new(:node), NodePredicates

        children :base, :name

        public :base, :name

        # Test if AST node is possibly a top level constant
        #
        # @return [Boolean]
        def possible_top_level?
          base.nil? || n_cbase?(base)
        end
      end # Const
    end # Meta
  end # AST
end # Mutest

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mutest-0.0.9 lib/mutest/ast/meta/const.rb
mutest-0.0.8 lib/mutest/ast/meta/const.rb
mutest-0.0.7 lib/mutest/ast/meta/const.rb
mutest-0.0.6 lib/mutest/ast/meta/const.rb
mutest-0.0.5 lib/mutest/ast/meta/const.rb
mutest-0.0.4 lib/mutest/ast/meta/const.rb
mutest-0.0.3 lib/mutest/ast/meta/const.rb
mutest-0.0.2 lib/mutest/ast/meta/const.rb