Class: Asciidoctor::PlantUml::Configuration
- Inherits:
-
Object
- Object
- Asciidoctor::PlantUml::Configuration
- Defined in:
- lib/asciidoctor-plantuml/plantuml.rb
Constant Summary collapse
- DEFAULT_URL =
ENV["PLANTUML_URL"] || ""
Instance Attribute Summary collapse
-
#png_enable ⇒ Object
Returns the value of attribute png_enable.
-
#svg_enable ⇒ Object
Returns the value of attribute svg_enable.
-
#txt_enable ⇒ Object
Returns the value of attribute txt_enable.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
15 16 17 18 19 20 |
# File 'lib/asciidoctor-plantuml/plantuml.rb', line 15 def initialize @url = DEFAULT_URL @txt_enable = true @svg_enable = true @png_enable = true end |
Instance Attribute Details
#png_enable ⇒ Object
Returns the value of attribute png_enable.
13 14 15 |
# File 'lib/asciidoctor-plantuml/plantuml.rb', line 13 def png_enable @png_enable end |
#svg_enable ⇒ Object
Returns the value of attribute svg_enable.
13 14 15 |
# File 'lib/asciidoctor-plantuml/plantuml.rb', line 13 def svg_enable @svg_enable end |
#txt_enable ⇒ Object
Returns the value of attribute txt_enable.
13 14 15 |
# File 'lib/asciidoctor-plantuml/plantuml.rb', line 13 def txt_enable @txt_enable end |
#url ⇒ Object
Returns the value of attribute url.
13 14 15 |
# File 'lib/asciidoctor-plantuml/plantuml.rb', line 13 def url @url end |