Class: Rust::Plots::Renderable

Inherits:
Object
  • Object
show all
Defined in:
lib/rust/plots/core.rb

Overview

Represents any element that can be rendered in a plot (e.g., axes or grids).

Direct Known Subclasses

Axis, Grid

Instance Method Summary collapse

Constructor Details

#initializeRenderable

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