Class: Graphomaton::RenderOptions
- Inherits:
-
Data
- Object
- Data
- Graphomaton::RenderOptions
- Defined in:
- lib/graphomaton/model.rb,
sig/graphomaton.rbs
Instance Attribute Summary collapse
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#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(format: :svg, width: 800, height: 600, options: {}) ⇒ RenderOptions
constructor
A new instance of RenderOptions.
Constructor Details
#initialize(format: :svg, width: 800, height: 600, options: {}) ⇒ RenderOptions
Returns a new instance of RenderOptions.
197 198 199 |
# File 'lib/graphomaton/model.rb', line 197 def initialize(format: :svg, width: 800, height: 600, options: {}) super(format: format.to_sym, width: width, height: height, options: ModelValue.copy()) end |
Instance Attribute Details
#format ⇒ Object (readonly)
Returns the value of attribute format
196 197 198 |
# File 'lib/graphomaton/model.rb', line 196 def format @format end |
#height ⇒ Object (readonly)
Returns the value of attribute height
196 197 198 |
# File 'lib/graphomaton/model.rb', line 196 def height @height end |
#options ⇒ Object (readonly)
Returns the value of attribute options
196 197 198 |
# File 'lib/graphomaton/model.rb', line 196 def @options end |
#width ⇒ Object (readonly)
Returns the value of attribute width
196 197 198 |
# File 'lib/graphomaton/model.rb', line 196 def width @width end |