Class: Kramdown::PlantUml::Options
- Defined in:
- lib/kramdown-plantuml/options.rb
Overview
Options for PlantUML processing
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#scale ⇒ Object
readonly
Returns the value of attribute scale.
-
#style ⇒ Object
readonly
Returns the value of attribute style.
-
#theme_directory ⇒ Object
readonly
Returns the value of attribute theme_directory.
-
#theme_name ⇒ Object
readonly
Returns the value of attribute theme_name.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(options_hash = {}) ⇒ Options
constructor
A new instance of Options.
- #raise_errors? ⇒ Boolean
- #to_h ⇒ Object
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( = {}) @logger = LogWrapper.init @options = massage() || {} @raise_errors = extract_raise_errors(@options) (@options) (@options) end |
Instance Attribute Details
#height ⇒ Object (readonly)
Returns the value of attribute height.
10 11 12 |
# File 'lib/kramdown-plantuml/options.rb', line 10 def height @height end |
#scale ⇒ Object (readonly)
Returns the value of attribute scale.
10 11 12 |
# File 'lib/kramdown-plantuml/options.rb', line 10 def scale @scale end |
#style ⇒ Object (readonly)
Returns the value of attribute style.
10 11 12 |
# File 'lib/kramdown-plantuml/options.rb', line 10 def style @style end |
#theme_directory ⇒ Object (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_name ⇒ Object (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 |
#width ⇒ Object (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
20 21 22 |
# File 'lib/kramdown-plantuml/options.rb', line 20 def raise_errors? @raise_errors end |
#to_h ⇒ Object
24 25 26 |
# File 'lib/kramdown-plantuml/options.rb', line 24 def to_h @options end |