load From Resource
fun loadFromResource(resourcePath: String = DICE_RULES_RESOURCE_PATH, classLoader: ClassLoader = Thread.currentThread().contextClassLoader): String
Load rules from a classpath resource.
Parameters
resource Path
Path to the resource, e.g., "prolog/dice-rules.pl"
class Loader
ClassLoader to use for loading the resource