Class: Emfsvg::Options

Inherits:
Struct
  • Object
show all
Defined in:
lib/emfsvg/options.rb

Overview

Render options. Frozen on construction; carry through the renderer.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_plusObject

Returns the value of attribute emf_plus

Returns:

  • (Object)

    the current value of emf_plus



5
6
7
# File 'lib/emfsvg/options.rb', line 5

def emf_plus
  @emf_plus
end

#heightObject

Returns the value of attribute height

Returns:

  • (Object)

    the current value of height



5
6
7
# File 'lib/emfsvg/options.rb', line 5

def height
  @height
end

#namespaceObject

Returns the value of attribute namespace

Returns:

  • (Object)

    the current value of namespace



5
6
7
# File 'lib/emfsvg/options.rb', line 5

def namespace
  @namespace
end

#verboseObject

Returns the value of attribute verbose

Returns:

  • (Object)

    the current value of verbose



5
6
7
# File 'lib/emfsvg/options.rb', line 5

def verbose
  @verbose
end

#widthObject

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



5
6
7
# File 'lib/emfsvg/options.rb', line 5

def width
  @width
end