class MatterCompiler::BlueprintNode

Blueprint AST node

Base class for API Blueprint AST nodes in Matter Compiler.

@abstract

Constants

ONE_INDENTATION_LEVEL

Public Class Methods

new(ast = nil) click to toggle source

Initialize the node

@param ast [Array, Hash, nil] a hash or array to initialize the node with or nil

# File lib/matter_compiler/blueprint.rb, line 18
def initialize(ast = nil)
  load_ast!(ast) if ast
end

Public Instance Methods

load_ast!(ast) click to toggle source

Load AST object content into node

@param ast [Array, Hash] an ast object to load

# File lib/matter_compiler/blueprint.rb, line 25
def load_ast!(ast)
end
serialize(level = 0) click to toggle source

Serialize node to a Markdown string buffer

@param level [Integer, 0] requested indentation level @return [String, nil] content of the node serialized into Markdown or nil

# File lib/matter_compiler/blueprint.rb, line 32
def serialize(level = 0)
end