Skip to contents

This function will generate an object store that will contain and update a lesson object based on the status of the git repository

Usage

.lesson_store()

Value

a list with four functions that operate on a supplied path string

  • get() returns .this_lesson (as described in this_lesson())

  • set(path) sets .this_lesson and its git statuses from the lesson in path. This also sets set_globals() and set_resource_list().

  • valid(path) uses path to validate if a lesson is identical to the stored lesson from its git status. Returns TRUE if it is identical and FALSE if it is not

  • clear() resets all global variables.

See also

.list_store() for a generic list implementation and this_lesson() for details of the implementation of this generator in sandpaper