LogoJiazhen Xie's blog

Design pattern in ruby notes

By Jiazhen Xie on Nov 26, 2014
Design pattern in ruby notes

Template Method pattern

  • Template Method pattern is to build an abstract base class with a skeletal method. Non-abstract methods that can be overridden in the concrete classes of the Template Method pattern are called hook methods.
  • The “I am what I am” approach to typing has been called duck typing
© Copyright 2024 by Jiazhen Xie.