Class: Xlsxrb::ChartBuilder::SeriesBuilder
- Inherits:
-
Object
- Object
- Xlsxrb::ChartBuilder::SeriesBuilder
- Defined in:
- lib/xlsxrb.rb
Overview
Builder for a single series entry in block-style chart definitions.
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize ⇒ SeriesBuilder
constructor
A new instance of SeriesBuilder.
- #method_missing(name, *args, **kwargs) ⇒ Object
- #respond_to_missing?(_name, _include_private = false) ⇒ Boolean
Constructor Details
#initialize ⇒ SeriesBuilder
Returns a new instance of SeriesBuilder.
56 57 58 |
# File 'lib/xlsxrb.rb', line 56 def initialize @options = {} end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, **kwargs) ⇒ Object
62 63 64 65 |
# File 'lib/xlsxrb.rb', line 62 def method_missing(name, *args, **kwargs, &) key = name.to_sym @options[key] = kwargs.empty? ? args.first : kwargs end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
60 61 62 |
# File 'lib/xlsxrb.rb', line 60 def @options end |
Instance Method Details
#respond_to_missing?(_name, _include_private = false) ⇒ Boolean
67 68 69 |
# File 'lib/xlsxrb.rb', line 67 def respond_to_missing?(_name, _include_private = false) true end |