Ruby/Rails Features and Patterns

Flashcard 3 of 6

Can you name this "Gang of Four" design pattern?

class TrailWithProgress < SimpleDelegator
  def initialize(trail)
    super
    @trail = trail
  end

  def incomplete?
    unstarted? || in_progress?
  end

  private

  def unstarted?
    # ...
  end

  def in_progress?
    # ...
  end
 end

Answer:

Reveal Answer