Class: Rust::Plots::GGPlot::Theme::Element
- Defined in:
- lib/rust/external/ggplot2/themes.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(**options) ⇒ Element
constructor
A new instance of Element.
- #r_function ⇒ Object
- #to_h ⇒ Object
- #to_R ⇒ Object
Constructor Details
#initialize(**options) ⇒ Element
Returns a new instance of Element.
87 88 89 |
# File 'lib/rust/external/ggplot2/themes.rb', line 87 def initialize(**) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
85 86 87 |
# File 'lib/rust/external/ggplot2/themes.rb', line 85 def @options end |
Instance Method Details
#r_function ⇒ Object
91 92 93 |
# File 'lib/rust/external/ggplot2/themes.rb', line 91 def r_function raise "Not implemented for generic theme element" end |
#to_h ⇒ Object
104 105 106 107 108 |
# File 'lib/rust/external/ggplot2/themes.rb', line 104 def to_h hash = @options.clone hash['_type'] = self.class.name return hash end |