Skip to content

Commit

Permalink
method-chains docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jckarter committed Jan 17, 2010
1 parent 7872134 commit a146e1a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions extra/method-chains/method-chains-docs.factor
@@ -0,0 +1,22 @@
! (c)2009 Joe Groff bsd license
USING: help.markup help.syntax ;
IN: method-chains

HELP: AFTER:
{ $syntax "AFTER: class generic
implementation ;" }
{ $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" } "." } ;

HELP: BEFORE:
{ $syntax "BEFORE: class generic
implementation ;" }
{ $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" } "." } ;

ARTICLE: "method-chains" "Method chaining syntax"
"The " { $vocab-link "method-chains" } " vocabulary provides syntax for extending method implementations in class hierarchies."
{ $subsections
POSTPONE: AFTER:
POSTPONE: BEFORE:
} ;

ABOUT: "method-chains"
1 change: 1 addition & 0 deletions extra/method-chains/summary.txt
@@ -0,0 +1 @@
BEFORE: and AFTER: syntax for extending methods in class hierarchies

0 comments on commit a146e1a

Please sign in to comment.