class YAMLScript

Overview

Crystal binding for the libyamlscript shared library.

Defined in:

yamlscript.cr
yamlscript/version.cr

Constant Summary

VERSION = "0.1.96"
YAMLSCRIPT_VERSION = "0.1.96"

This value is automatically updated by 'make bump'. The version number is used to find the correct shared library file. We currently only support binding to an exact version of libyamlscript.

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(**options) #

[View source]

Class Method Detail

def self.load(ys_code : String, **options) #

Interface with the libyamlscript shared library.

Example:

require "yamlscript"

YAMLScript.load(File.read("file.ys"))

[View source]

Instance Method Detail

def error : Hash(String, String) | Nil #

[View source]
def load(ys_code : String) #

Compile and eval a YAMLScript string and return the result


[View source]
def options : Hash(Symbol, String) #

[View source]