class Crinja::Test::Library
- Crinja::Test::Library
- Crinja::FeatureLibrary(Crinja::Callable)
- Reference
- Object
Defined in:
lib/test.crConstructors
-
.new(register_defaults = true, disabled = [] of String)
Creates a new feature library.
Class Method Summary
Instance Method Summary
-
#register_defaults
Create a local method in a subclass to allow the usage of
previous_def
.
Instance methods inherited from class Crinja::FeatureLibrary(Crinja::Callable)
<<(classes : Array(Class))<<(klass : Class)
<<(obj : T) <<, [](lookup) : T [], []=(name, klass : Class)
[]=(name, obj : T) []=, aliases : Hash(String, String) aliases, disabled : Array(String) disabled, each(*args, **options)
each(*args, **options, &) each, has_key?(name) has_key?, inspect(io : IO) inspect, keys(*args, **options)
keys(*args, **options, &) keys, name name, register_defaults register_defaults, size(*args, **options)
size(*args, **options, &) size
Constructor methods inherited from class Crinja::FeatureLibrary(Crinja::Callable)
new(register_defaults = true, disabled : Array(String) = [] of String)
new
Constructor Detail
Creates a new feature library.
If register_defaults is set to false
, this library will be empty. Otherwise it is populated
with registered default features.
A list of disabled features can be provided, if a feature name in this list is accessed,
it will raise a SecurityError
.