Module: AePageObjects::Singleton::ClassMethods

Defined in:
lib/ae_page_objects/core/singleton.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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



20
21
22
# File 'lib/ae_page_objects/core/singleton.rb', line 20

def method_missing(*args, &block)
  instance.send(*args, &block)
end

Instance Method Details

#configure(&block) ⇒ Object



14
15
16
# File 'lib/ae_page_objects/core/singleton.rb', line 14

def configure(&block)
  class_eval(&block)
end

#instanceObject



6
7
8
# File 'lib/ae_page_objects/core/singleton.rb', line 6

def instance
  @instance ||= new
end

#respond_to?(*args) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/ae_page_objects/core/singleton.rb', line 10

def respond_to?(*args)
  super || instance.respond_to?(*args)
end