Source code for pydmt.features.gem

"""
gem.py
"""

import os.path

from pydmt.api.feature import Feature
from pydmt.builders.gem import Installer
from pydmt.core.pydmt import PyDMT


[docs] class FeatureGem(Feature):
[docs] def setup(self, pydmt: PyDMT) -> None: if not os.path.isfile("Gemfile"): return pydmt.add_builder(Installer( source="Gemfile", target="out/gem.stamp", ))