def on_toml_dumps(self, toml, config, dictionary, **kwargs):
        """ The `toml <https://pypi.org/project/toml/>`_ dumps method.

        :param module toml: The ``toml`` module
        :param class config: The instance's config class
        :param dict dictionary: The dictionary to serialize
        :param list inline_tables: A list glob patterns to use for derminining which
            dictionaries should be rendered as inline tables, defaults to [], optional
        :returns: The TOML serialization
        :rtype: str

        Dumping inline tables uses :mod:`fnmatch` to compare ``.`` delimited dictionary
        path glob patterns to filter tables

        >>> config.dumps_toml(prefer="toml")
        name = "My Project"
        type = "personal-project"
        keywords = [ "example", "test",]
        [dependencies.a-dependency]
        name = "A Dependency"
        version = "v12"
        >>> config.dumps_toml(prefer="toml", inline_tables=["dependencies"])
        name = "My Project"
        type = "personal-project"
        keywords = [ "example", "test",]
        dependencies = {a-dependency = {name = "A Dependency",version = "v12"}
        }
        >>> config.dumps_toml(prefer="toml", inline_tables=["dependencies.*"])
        name = "My Project"
        type = "personal-project"
        keywords = [ "example", "test",]
        [dependencies]
        a-dependency = { name = "A Dependency", version = "v12" }
        """

        inline_tables = set(kwargs.get("inline_tables", []))

        def _dump_dict(dictionary, source, source_path=[]):
            for (key, value) in dictionary.items():
                if isinstance(value, dict):
                    is_inline = any(
                        [
                            fnmatch.fnmatch(".".join(source_path + [key]), pattern)
                            for pattern in inline_tables
                        ]
                    )
                    if is_inline:
                        source[key] = toml.TomlDecoder().get_empty_inline_table()
                    else:
                        source[key] = {}
                    source[key].update(
                        _dump_dict(value, {}, source_path=source_path + [key])
                    )
                else:
                    source[key] = value
            return source

        encoder = toml.TomlEncoder(preserve=True)
        return toml.dumps(_dump_dict(dictionary, {}), encoder=encoder)