pygments / pygments.rb

💎 Ruby wrapper for Pygments syntax highlighter
MIT License
572 stars 141 forks source link

resolves #226 add `Pygments.pygments_version` method to query underlying Pygments version #227

Closed slonopotamus closed 3 years ago

slonopotamus commented 3 years ago

@mojavelinux do you have better ideas for method name? I don't want to call it Pygments.version to avoid confusion with Pygments::VERSION, though possibly even in current state it is too much confusing.

Pygments::underlying_version? Pygments::backend_version? Pygments::python_version (though this can be read as "version of Python itself that is used to run Pygments")

mojavelinux commented 3 years ago

Since there's ambiguity in the naming, I think being explicit is the best strategy. So I recommend Pygments.pygments_version.