loadFromResource

fun loadFromResource(resourcePath: String = DICE_RULES_RESOURCE_PATH, classLoader: ClassLoader = Thread.currentThread().contextClassLoader): String

Load rules from a classpath resource.

Parameters

resourcePath

Path to the resource, e.g., "prolog/dice-rules.pl"

classLoader

ClassLoader to use for loading the resource