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.
84 85 86 |
# File 'lib/rust/external/ggplot2/themes.rb', line 84 def initialize(**) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
82 83 84 |
# File 'lib/rust/external/ggplot2/themes.rb', line 82 def @options end |
Instance Method Details
#r_function ⇒ Object
88 89 90 |
# File 'lib/rust/external/ggplot2/themes.rb', line 88 def r_function raise "Not implemented for generic theme element" end |
#to_h ⇒ Object
101 102 103 104 105 |
# File 'lib/rust/external/ggplot2/themes.rb', line 101 def to_h hash = @options.clone hash['_type'] = self.class.name return hash end |