Properties are special now!
[clinton/lisp-on-lines.git] / src / standard-descriptions / t.lisp
CommitLineData
4358148e 1(in-package :lisp-on-lines)
2
3(define-description T ()
4 ((identity :label nil :function #'identity)
5 (type :label "Type" :function #'type-of)
6de8d300 6 (class :label "Class" :function #'class-of)
7 (active-attributes :label "Attributes"
8 :value nil
9 :activep nil
10 :keyword :attributes)))
4358148e 11
12(define-layered-method description-of (any-lisp-object)
13 (find-description 't))
14
15(define-display ((description t))
16 (format *display* "~{~A~%~}"
17 (mapcar
18 (lambda (attribute)
19 (with-output-to-string (*display*)
6de8d300 20 (display-attribute *object* attribute)))
4358148e 21 (attributes description))))
22
6de8d300 23
24