Class: Asciidoctor::PlantUml::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/asciidoctor-plantuml/plantuml.rb

Constant Summary collapse

DEFAULT_URL =
ENV["PLANTUML_URL"] || ""

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_enableObject

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_enableObject

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_enableObject

Returns the value of attribute txt_enable.



13
14
15
# File 'lib/asciidoctor-plantuml/plantuml.rb', line 13

def txt_enable
  @txt_enable
end

#urlObject

Returns the value of attribute url.



13
14
15
# File 'lib/asciidoctor-plantuml/plantuml.rb', line 13

def url
  @url
end