Members
-
close
-
Description
The
close
method asks an object to shut itself down in a way that will allow it to be reopened, unlike the
end method which will call the destroy method which should make the object unusable, but also
devoid of all resources whereasclose
may still keep some resources open.Heading 1 Heading 2 Heading 3 Bar Food This is a table This uses the
before
chain which means the last one defined in the first one destroyedDetails
-
end
-
Description
The
end
method will call the destroy method which should make the object unusable and
devoid of all resources, unlike the
close method asks an object to shut itself down in a way that will allow it to be reopened.This uses the
before
chain which means the last one defined in the first one destroyedExamples
foo=bar
Details
-
<private> destroy
-
Description
Destroy is called by the end method and it is here that you should clean up after yourself. The difference between
destroy
and end is theend
is the verb that you raise on an object to ask it to go away
anddestroy
is where you actually do the work to clean up. Think of this as the counterpart ofconstructor
yet
not called automatically.This uses the
before
chain which means the last one defined is the first one destroyedDetails
-
open
-
Description
If you are using the open/close paradigm for an object that can kind of go dormant on base/chains#close and can be "reopened"
again later, here is where the "open" code will go.This used the
after
chain which means that the first one defined is the first one destroyed.Details