set a new value on the effect
do the decoration
do the decoration
set a new Decorator for the label
set a new Decorator for the label
do the decoration
do the decoration
set a new Decorator for the value
set a new Decorator for the value
set a new Decorator
set a new Decorator
set a new Decorator
set a new Decorator
executing an effect executes the value and returns success unless there is an Error
executing an effect executes the value and returns success unless there is an Error
use this Effect as a header in a table
return the label styles
return the label styles
set a new style for the label
set a new style for the label
set a new style for the value
set a new style for the value
set a new style
set a new style
An Effect is a property which is used to display names corresponding to side-effects.
If the side effect throws an exception, the Effect will display it alongside to the label. Otherwise only the label is displayed.
The apply method can be used to execute the Effect effect and possibly get a value out of it (but usually not displayed):
Effect(label, 1).apply() must_== 1
The value is stored in a Property object so it will not be evaluated until explicitly queried.