ReplacingCaller¶
-
class
sconstool.util.
ReplacingCaller
(wrapped, replacements={}, **kw)[source]¶ Base class for
ReplacingBuilder
,ReplacingAction
and other similar wrappers.Parameters: - wrapped – callable object, initializes
wrapped
, - replacements (dict) – initializes
replacements
, - kw – keyword arguments used to initialize
replacements
.
-
__call__
(env, *args, **kw)[source]¶ Invokes
wrapped
with args and replaced variables in env and kw.Parameters:
-
replacements
= None¶ An instance of
Replacements
used to replace variables.
-
sort_call_args
(*args)[source]¶ May be be overwritten in a subclass to reorganize positional arguments passed to
wrapped
.
-
wrapped
= None¶ Wrapped callable that will be invoked with replaced variables.
- wrapped – callable object, initializes