Class: Markbridge::AST::Node Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/markbridge/ast/node.rb

Overview

This class is abstract.

Subclass and add specific behavior

Base class for all AST nodes. This is a marker class that serves as the common ancestor for all AST nodes.

The AST hierarchy consists of:

  • Element - nodes that can contain children

  • Text - leaf nodes containing text content

All node types inherit from this base class to enable type checking and polymorphic operations on the AST tree.