Module: PageModels::PageModelMethodDelegation

Defined in:
lib/page_models/integration/rspec.rb,
lib/page_models/integration/cucumber.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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



20
21
22
23
24
25
26
# File 'lib/page_models/integration/rspec.rb', line 20

def method_missing(name, *args, &block)
  if $page_model && $page_model.respond_to?(name)
    $page_model.send(name, *args, &block) 
  else
    super(name, *args, &block)
  end
end