I want to do the following:
pattern = cl().a().b("test").c()
where cl is a class and a, b, c are class methods.
After that I need to call pattern.to_string and it should output a string that was formed. Each method returns a string.
Now how can I achieve the above? Append the method output to a list? What about the chainable function? If I wrote the class the normal way, the above won't work.
Thank.