Method: AutomationObject::BluePrint::PageObjectAdapter.define_random_module
- Defined in:
- lib/automation_object/blue_print/page_object_adapter.rb
.define_random_module ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/automation_object/blue_print/page_object_adapter.rb', line 41 def define_random_module random_module_name = [*('A'..'Z')].sample(20).join random_module_symbol = random_module_name.to_sym AutomationObject::BluePrint::PageObjectAdapter.module_eval %Q? module #{random_module_name} end ? const_get(random_module_symbol) end |