Index: library/lib/doc-assets/attributemethod.html.yuidoc =================================================================== diff -u -r8cfd5973ca93d4c014d0a0500bc4151972e1d80a -r111bc97fb2853629b153839d2b1f3542f8b50a75 --- library/lib/doc-assets/attributemethod.html.yuidoc (.../attributemethod.html.yuidoc) (revision 8cfd5973ca93d4c014d0a0500bc4151972e1d80a) +++ library/lib/doc-assets/attributemethod.html.yuidoc (.../attributemethod.html.yuidoc) (revision 111bc97fb2853629b153839d2b1f3542f8b50a75) @@ -1,11 +1,13 @@ [:!let modifier [expr {[:pinfo get -default 0 bundle call-protected]?"protected":""}]] +[:!let prefix [expr {[[:get_owning_partof] pinfo get -default 0 bundle ismetaclass] ? "cls": "obj"}]] [:!let depr [expr {[:!get @deprecated]?"deprecated":""}]] +
[:? {[info exists :@return] && [${:@return} spec] ne ""} {<[${:@return} spec]>} ]
- obj ${:name} ?value?
+
+ $prefix ${:name} ?value?
@@ -26,59 +28,66 @@
- Parameters:
-
-
value <optional>
+ [:!let spec "optional"]
+ [:?objvar $owning_attribute @spec {
+ [:!let spec [join [list $spec {*}[$owning_attribute @spec]] ,]]
+ }]
+ value : $spec
- If provided, list of values to
- be set for the attribute ${:name}
+ If provided, the
+ attribute ${:name} is set to value. If omitted, the current attribute
+ value is returned.
-
- [:?objvar $owning_attribute @return {
+ [:?objvar $owning_attribute @spec {
- Returns:
-
[:? {[${:@return} eval {info exists :spec}] && [${:@return} spec] ne ""} {[${:@return} spec]}]
+ [:? {[$owning_attribute @spec] ne ""} {[$owning_attribute @spec]}]
- - [${:@return} as_text]
}]
- - Type:
- - [:pinfo get bundle type]
- attribute accessor/mutator
+ - Implementation details:
+ - [:pinfo get bundle type]
- attribute getter/setter
- - Protection:
[:? {[:pinfo get -default 0 bundle redefine-protected]} {
+ - Protection:
- redefine-protected
- }]
+ }]
[:? {[$owning_attribute pinfo get -default 0 bundle incremental]} {
${:name} add
- [:? {[info exists :@return] && [${:@return} spec] ne ""} {<[${:@return} spec]>} ]
- obj
+
+ $prefix
${:name} add
value
- Parameters:
-
-
value <required>
+ value
+ [:?objvar $owning_attribute @spec {
+ [:? {[$owning_attribute @spec] ne ""} { : [$owning_attribute @spec]}]
+ }]
+
- ...
+
-
+
@@ -88,7 +97,7 @@
${:name} delete
- [:? {[info exists :@return] && [${:@return} spec] ne ""} {<[${:@return} spec]>} ]
+
obj
${:name} delete
value
@@ -97,16 +106,19 @@
- Parameters:
-
-
value <required>
+ value
+ [:?objvar $owning_attribute @spec {
+ [:? {[$owning_attribute @spec] ne ""} { : [$owning_attribute @spec]}]
+ }]
- ...
+
-
+