Class: Emfsvg::Options
- Inherits:
-
Struct
- Object
- Struct
- Emfsvg::Options
- Defined in:
- lib/emfsvg/options.rb
Overview
Render options. Frozen on construction; carry through the renderer.
Instance Attribute Summary collapse
-
#emf_plus ⇒ Object
Returns the value of attribute emf_plus.
-
#height ⇒ Object
Returns the value of attribute height.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(namespace: nil, width: nil, height: nil, verbose: false, emf_plus: false) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(namespace: nil, width: nil, height: nil, verbose: false, emf_plus: false) ⇒ Options
Returns a new instance of Options.
6 7 8 9 |
# File 'lib/emfsvg/options.rb', line 6 def initialize(namespace: nil, width: nil, height: nil, verbose: false, emf_plus: false) super freeze end |
Instance Attribute Details
#emf_plus ⇒ Object
Returns the value of attribute emf_plus
5 6 7 |
# File 'lib/emfsvg/options.rb', line 5 def emf_plus @emf_plus end |
#height ⇒ Object
Returns the value of attribute height
5 6 7 |
# File 'lib/emfsvg/options.rb', line 5 def height @height end |
#namespace ⇒ Object
Returns the value of attribute namespace
5 6 7 |
# File 'lib/emfsvg/options.rb', line 5 def namespace @namespace end |
#verbose ⇒ Object
Returns the value of attribute verbose
5 6 7 |
# File 'lib/emfsvg/options.rb', line 5 def verbose @verbose end |
#width ⇒ Object
Returns the value of attribute width
5 6 7 |
# File 'lib/emfsvg/options.rb', line 5 def width @width end |