Class: MotionPlot::PlotOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/motion-plot/utilities/plot_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#optionsObject

Returns the value of attribute options.



4
5
6
# File 'lib/motion-plot/utilities/plot_options.rb', line 4

def options
  @options
end