However it seems I am having a problem with syntax possibly?
-Code from the LUBE documentation guide-
Code: Select all
protocolClient = subclass(lube.Client)
protocolClient._implemented = true
-- define protocolClient
client = protocolClient()
An explanation of the code might be helpful !
However when writing this using the Class Commons syntax since the LUBE guide stated it was just using a generic syntax. I don't understand why they're making a subclass inside the lube.Client class? I thought they're suppose to be making an object from it... Anyways my code that I made using the Class Commons guide after installing middleclass was this.
-line of code that gave me error-
Code: Select all
protocolClient = common.instance(lube.Client,'protocolClient')
-all of the code-Can't use a generic client object directly, please provide an implementation
Code: Select all
protocolClient = common.instance(lube.Client,'protocolClient')
protocolClient._implemented = true
-- define protocolClient
client = protocolClient()