class YAMLScript
- YAMLScript
- Reference
- Object
Overview
Crystal binding for the libys shared library.
Defined in:
yamlscript.cryamlscript/version.cr
Constant Summary
-
VERSION =
"0.2.7" -
YAMLSCRIPT_VERSION =
"0.2.7" -
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 libys.
Constructors
Class Method Summary
-
.load(ys_code : String, **options)
Interface with the libys 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 libys shared library.
Example:
require "yamlscript"
YAMLScript.load(File.read("file.ys"))