Class: Graphomaton::SvgOptions
- Inherits:
-
Data
- Object
- Data
- Graphomaton::SvgOptions
- Defined in:
- lib/graphomaton/model.rb,
sig/graphomaton.rbs
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(width: 800, height: 600, **options) ⇒ SvgOptions
constructor
A new instance of SvgOptions.
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, **) super(width: width, height: height, options: ModelValue.copy()) end |
Instance Attribute Details
#height ⇒ Object (readonly)
Returns the value of attribute height
202 203 204 |
# File 'lib/graphomaton/model.rb', line 202 def height @height end |
#options ⇒ Object (readonly)
Returns the value of attribute options
202 203 204 |
# File 'lib/graphomaton/model.rb', line 202 def @options end |
#width ⇒ Object (readonly)
Returns the value of attribute width
202 203 204 |
# File 'lib/graphomaton/model.rb', line 202 def width @width end |