gramfuzz/gramfuzz/fields.py
def build(self, pre=None, shortest=False):
        """Build the current ``Opt`` instance

        :param list pre: The prerequisites list
        :param bool shortest: Whether or not the shortest reference-chain (most minimal) version of the field should be generated.
        """
        if pre is None:
            pre = []

        if shortest or rand.maybe(self.prob):
            raise errors.OptGram

        return super(Opt, self).build(pre, shortest=shortest)
def build(self, pre=None, shortest=False):
        """Build the current ``Opt`` instance

        :param list pre: The prerequisites list
        :param bool shortest: Whether or not the shortest reference-chain (most minimal) version of the field should be generated.
        """
        if pre is None:
            pre = []

        if shortest or rand.maybe(self.prob):
            raise errors.OptGram

        return super(Opt, self).build(pre, shortest=shortest)
def build ( self , pre = None , shortest = False ) : if pre is None : pre = [ ] if shortest or rand . maybe ( self . prob ) : raise errors . OptGram return super ( Opt , self ) . build ( pre , shortest = shortest )
Build the current ``Opt`` instance

        :param list pre: The prerequisites list
        :param bool shortest: Whether or not the shortest reference-chain (most minimal) version of the field should be generated.
Build the current Opt instance