Module: Asciidoctor::Foodogsquared
- Defined in:
- lib/asciidoctor/foodogsquared/helpers.rb
Overview
The namespace for storing Asciidoctor. This is the entry point for the entirety of this project.
Constant Summary collapse
- NAME =
'asciidoctor-foodogsquared-custom-extensions'
- VERSION =
'1.2.1'
- CONTACT_EMAIL =
'[email protected]'
- USER_AGENT =
"#{NAME}/#{VERSION} ( #{CONTACT_EMAIL} )".freeze
Instance Method Summary collapse
Instance Method Details
#warn_or_raise(doc, warning) ⇒ Object
21 22 23 24 25 |
# File 'lib/asciidoctor/foodogsquared/helpers.rb', line 21 def warn_or_raise(doc, warning) return raise warning if (doc.safe > Asciidoctor::SafeMode::SERVER) && !(doc.attr? 'allow-uri-read') warn warning end |