Class: Kramdown::PlantUml::Options

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

Overview

Options for PlantUML processing

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options_hash = {}) ⇒ Options

Returns a new instance of Options.



12
13
14
15
16
17
18
# File 'lib/kramdown-plantuml/options.rb', line 12

def initialize(options_hash = {})
  @logger = LogWrapper.init
  @options = massage(options_hash) || {}
  @raise_errors = extract_raise_errors(@options)
  extract_theme_options(@options)
  extract_style_options(@options)
end

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height.



10
11
12
# File 'lib/kramdown-plantuml/options.rb', line 10

def height
  @height
end

#scaleObject (readonly)

Returns the value of attribute scale.



10
11
12
# File 'lib/kramdown-plantuml/options.rb', line 10

def scale
  @scale
end

#styleObject (readonly)

Returns the value of attribute style.



10
11
12
# File 'lib/kramdown-plantuml/options.rb', line 10

def style
  @style
end

#theme_directoryObject (readonly)

Returns the value of attribute theme_directory.



10
11
12
# File 'lib/kramdown-plantuml/options.rb', line 10

def theme_directory
  @theme_directory
end

#theme_nameObject (readonly)

Returns the value of attribute theme_name.



10
11
12
# File 'lib/kramdown-plantuml/options.rb', line 10

def theme_name
  @theme_name
end

#widthObject (readonly)

Returns the value of attribute width.



10
11
12
# File 'lib/kramdown-plantuml/options.rb', line 10

def width
  @width
end

Instance Method Details

#raise_errors?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/kramdown-plantuml/options.rb', line 20

def raise_errors?
  @raise_errors
end

#to_hObject



24
25
26
# File 'lib/kramdown-plantuml/options.rb', line 24

def to_h
  @options
end