asciidoctor-rubyeval allows to include ruby code that will be evaluated at rendering time
>= 2.7
Jérôme Arbez-Gindre