Settings

interface Settings(source)

This interface is implemented by classes that provide access to settings for scripts in the form of key-value pairs. The settings provided are mostly retrieved from properties files that can be used to specify global settings for NSScript.

Functions

Link copied to clipboard
abstract operator fun get(key: String): String?

Retrieves the settings value for a given key.

open fun get(key: String, default: () -> String): String

Retrieves the settings value for a given key and allows a default value to be provided if the setting is not present.