class YAMLScript
- YAMLScript
- Reference
- Object
Overview
Crystal binding for the libyamlscript shared library.
Defined in:
yamlscript.cryamlscript/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
-
.load(ys_code : String, **options)
Interface with the libyamlscript shared library.
Instance Method Summary
- #error : Hash(String, String) | Nil
-
#load(ys_code : String)
Compile and eval a YAMLScript string and return the result
- #options : Hash(Symbol, String)
Constructor Detail
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"))