Class: MotionPlot::PlotOptions
- Inherits:
-
Object
- Object
- MotionPlot::PlotOptions
- Defined in:
- lib/motion-plot/utilities/plot_options.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ PlotOptions
constructor
A new instance of PlotOptions.
- #method_missing(m, *args, &block) ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ PlotOptions
Returns a new instance of PlotOptions.
6 7 8 9 |
# File 'lib/motion-plot/utilities/plot_options.rb', line 6 def initialize(args={}) @options = {} args.each_pair{|k,v| @options[k] = v} end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args, &block) ⇒ Object
11 12 13 |
# File 'lib/motion-plot/utilities/plot_options.rb', line 11 def method_missing(m, *args, &block) @options[m] end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/motion-plot/utilities/plot_options.rb', line 4 def @options end |