diff options
Diffstat (limited to 'include/interface.h')
-rw-r--r-- | include/interface.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/interface.h b/include/interface.h index b0469f4..36f4d50 100644 --- a/include/interface.h +++ b/include/interface.h @@ -31,11 +31,15 @@ public: * Add a - of course abstract - method to the interface * @param name Name of the method * @param arguments Optional description of the arguments + * @return Interface Same object to allow chaining */ - void method(const char *name, const Arguments &arguments = {}) + Interface &method(const char *name, const Arguments &arguments = {}) { // call base ClassBase::method(name, Abstract | Public, arguments); + + // return self + return *this; } private: |