]> gitweb.factorcode.org Git - factor.git/blob - extra/method-chains/method-chains-docs.factor
Update some copyright headers to follow the current convention
[factor.git] / extra / method-chains / method-chains-docs.factor
1 ! Copyright (C) 2009 Joe Groff.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: help.markup help.syntax ;
4 IN: method-chains
5
6 HELP: AFTER:
7 { $syntax "AFTER: class generic
8     implementation ;" }
9 { $description "Defines a method on " { $snippet "generic" } " for " { $snippet "class" } " which executes the new " { $snippet "implementation" } " code after invoking the parent class method on " { $snippet "generic" } "." } ;
10
11 HELP: BEFORE:
12 { $syntax "BEFORE: class generic
13     implementation ;" }
14 { $description "Defines a method on " { $snippet "generic" } " for " { $snippet "class" } " which executes the new " { $snippet "implementation" } " code, then invokes the parent class method on " { $snippet "generic" } "." } ;
15
16 ARTICLE: "method-chains" "Method chaining syntax"
17 "The " { $vocab-link "method-chains" } " vocabulary provides syntax for extending method implementations in class hierarchies."
18 { $subsections
19     POSTPONE: AFTER:
20     POSTPONE: BEFORE:
21 } ;
22
23 ABOUT: "method-chains"