Class: Rust::Plots::Renderable
Overview
Represents any element that can be rendered in a plot (e.g., axes or grids).
Instance Method Summary collapse
-
#[]=(option, value) ⇒ Object
Sets an option for the renderable object.
-
#initialize ⇒ Renderable
constructor
Creates a new empty renderable object.
Constructor Details
#initialize ⇒ Renderable
Creates a new empty renderable object.
193 194 195 |
# File 'lib/rust/plots/core.rb', line 193 def initialize @options = Rust::Options.new end |
Instance Method Details
#[]=(option, value) ⇒ Object
Sets an option for the renderable object.
200 201 202 203 204 |
# File 'lib/rust/plots/core.rb', line 200 def []=(option, value) @options[option] = value return self end |