Class: Graphomaton::SvgOptions

Inherits:
Data
  • Object
show all
Defined in:
lib/graphomaton/model.rb,
sig/graphomaton.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(width: 800, height: 600, **options) ⇒ SvgOptions

Returns a new instance of SvgOptions.



203
204
205
# File 'lib/graphomaton/model.rb', line 203

def initialize(width: 800, height: 600, **options)
  super(width: width, height: height, options: ModelValue.copy(options))
end

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height

Returns:

  • (Object)

    the current value of height



202
203
204
# File 'lib/graphomaton/model.rb', line 202

def height
  @height
end

#optionsObject (readonly)

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



202
203
204
# File 'lib/graphomaton/model.rb', line 202

def options
  @options
end

#widthObject (readonly)

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



202
203
204
# File 'lib/graphomaton/model.rb', line 202

def width
  @width
end