Metastatic.Adapters.Ruby.FromMeta (Metastatic v0.10.4)

View Source

Transform MetaAST (M2) back to Ruby AST (M1).

This module implements the reification function ρ_Ruby that converts meta-level representations back to Ruby-specific AST structures.

Coverage

M2.1 Core Layer: Fully supported M2.2 Extended Layer: Partial support (loops, basic iterators) M2.3 Native Layer: Direct passthrough (preserves original AST)

Summary

Functions

Transform MetaAST back to Ruby AST.

Functions

transform(unsupported, metadata)

@spec transform(term(), map()) :: {:ok, term()} | {:error, String.t()}

Transform MetaAST back to Ruby AST.

Returns {:ok, ruby_ast} on success or {:error, reason} on failure.