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.



215
216
217
# File 'lib/graphomaton/model.rb', line 215

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

Instance Attribute Details

#height ⇒ Object (readonly)

Returns the value of attribute height

Returns:

  • (Object) —

    the current value of height



214
215
216
# File 'lib/graphomaton/model.rb', line 214

def height
  @height
end

#options ⇒ Object (readonly)

Returns the value of attribute options

Returns:

  • (Object) —

    the current value of options



214
215
216
# File 'lib/graphomaton/model.rb', line 214

def options
  @options
end

#width ⇒ Object (readonly)

Returns the value of attribute width

Returns:

  • (Object) —

    the current value of width



214
215
216
# File 'lib/graphomaton/model.rb', line 214

def width
  @width
end