]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/models/models-docs.factor
help.markup: adding a $slots word to document slots, use it.
[factor.git] / basis / models / models-docs.factor
index 614e407e37d02e501a94ceef996b1c6efc4e0271..e565045780c15a73a243d5a72c234f900b6b3fa2 100644 (file)
@@ -4,12 +4,12 @@ IN: models
 
 HELP: model
 { $class-description "A mutable cell holding a single value. When the value is changed, a sequence of connected objects are notified. Models have the following slots:"
-    { $list
-        { { $slot "value" } " - the value of the model. Use " { $link set-model } " to change the value." }
-        { { $slot "connections" } " - a sequence of objects implementing the " { $link model-changed } " generic word, to be notified when the model's value changes." }
-        { { $slot "dependencies" } " - a sequence of models which should have this model added to their sequence of connections when activated." }
-        { { $slot "ref" } " - a reference count tracking the number of models which depend on this one." }
-        { { $slot "locked?" } " - a slot set by " { $link with-locked-model } " to ensure that the model doesn't get changed recursively" }
+    { $slots
+        { "value" "the value of the model. Use " { $link set-model } " to change the value." }
+        { "connections" "a sequence of objects implementing the " { $link model-changed } " generic word, to be notified when the model's value changes." }
+        { "dependencies" "a sequence of models which should have this model added to their sequence of connections when activated." }
+        { "ref" "a reference count tracking the number of models which depend on this one." }
+        { "locked?" "a slot set by " { $link with-locked-model } " to ensure that the model doesn't get changed recursively" }
     }
 "Other classes may inherit from " { $link model } "."
 } ;