Module: Watirmark::Model::FactoryMethodGenerators

Included in:
Factory
Defined in:
lib/watirmark/models/factory_method_generators.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(key, *args, &block) ⇒ Object

Act like an OpenStruct so we can be backward compatible with older controllers



6
7
8
9
# File 'lib/watirmark/models/factory_method_generators.rb', line 6

def method_missing(key, *args, &block)
  create_getters_and_setters strip_equals_from_method_name(key)
  send key, *args
end