defclass clarification

This commit is contained in:
Tuukka Turto 2013-07-10 07:11:11 +03:00
parent 9c31e34a26
commit 08734602ca

View File

@ -198,12 +198,12 @@ defclass
--------
new classes are declared with `defclass`. It can takes two optional parameters:
a vector defining a possible super class and another vector containing
a vector defining a possible super classes and another vector containing
attributes of the new class as two item vectors.
.. code-block:: clj
(defclass class-name [super-class]
(defclass class-name [super-class-1 super-class-2]
[[attribute value]])
Both values and functions can be bound on the new class as shown by the example