factor/basis/method-chains/method-chains-docs.factor

24 lines
1008 B
Factor
Raw Normal View History

! Copyright (C) 2009 Joe Groff.
! See http://factorcode.org/license.txt for BSD license.
2010-01-17 02:13:59 -05:00
USING: help.markup help.syntax ;
IN: method-chains
2017-08-26 18:52:34 -04:00
HELP: \AFTER:
2010-01-17 02:13:59 -05:00
{ $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" } "." } ;
2017-08-26 18:52:34 -04:00
HELP: \BEFORE:
2010-01-17 02:13:59 -05:00
{ $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."
2010-01-17 02:13:59 -05:00
{ $subsections
2017-08-26 18:52:34 -04:00
postpone: \AFTER:
postpone: \BEFORE:
2010-01-17 02:13:59 -05:00
} ;
ABOUT: "method-chains"