Module: SimplerWorkflow::OptionsAsMethods
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth_name, *args) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/simpler_workflow/options_as_methods.rb', line 3 def method_missing(meth_name, *args) if @options.has_key?(meth_name.to_sym) @options[meth_name.to_sym] = args[0] else super end end |