Sha256: 09622e3214e8a600720ab39d79b20afd1211ac13c064650773999929fce618cd

Contents?: true

Size: 233 Bytes

Versions: 18

Compression:

Stored size: 233 Bytes

Contents

module SimplerWorkflow
  module OptionsAsMethods
    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
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
simpler_workflow-0.3.3 lib/simpler_workflow/options_as_methods.rb
simpler_workflow-0.3.2 lib/simpler_workflow/options_as_methods.rb
simpler_workflow-0.3.1 lib/simpler_workflow/options_as_methods.rb
simpler_workflow-0.3.0 lib/simpler_workflow/options_as_methods.rb
simpler_workflow-0.3.0.beta2 lib/simpler_workflow/options_as_methods.rb
simpler_workflow-0.3.0.beta lib/simpler_workflow/options_as_methods.rb
simpler_workflow-0.2.7 lib/simpler_workflow/options_as_methods.rb
simpler_workflow-0.2.6 lib/simpler_workflow/options_as_methods.rb
simpler_workflow-0.2.5 lib/simpler_workflow/options_as_methods.rb
simpler_workflow-0.1.12 lib/simpler_workflow/options_as_methods.rb
simpler_workflow-0.2.4 lib/simpler_workflow/options_as_methods.rb
simpler_workflow-0.1.11 lib/simpler_workflow/options_as_methods.rb
simpler_workflow-0.2.3 lib/simpler_workflow/options_as_methods.rb
simpler_workflow-0.1.10 lib/simpler_workflow/options_as_methods.rb
simpler_workflow-0.2.1 lib/simpler_workflow/options_as_methods.rb
simpler_workflow-0.1.9 lib/simpler_workflow/options_as_methods.rb
simpler_workflow-0.2.0 lib/simpler_workflow/options_as_methods.rb
simpler_workflow-0.1.8 lib/simpler_workflow/options_as_methods.rb