Property definitions

app $ TextAsset :: defaultinit
# Text file from the assets folder
#
# Use `to_s` to get the content of this asset.
class TextAsset
	super Asset

	# Text content of this asset
	redef var to_s = load is lazy

	# Load this asset
	fun load: String do return ""

	# Error on the last call to `load`, if any
	var error: nullable Error = null
end
lib/app/assets.nit:30,1--44,3