Rubygem for extending modules that provide a contextual state to classes