Module: PageFactory
- Defined in:
- lib/page_factory.rb,
lib/page_factory/manager.rb,
lib/page_factory/page_extensions.rb,
lib/page_factory/page_part_extensions.rb,
lib/page_factory/pages_controller_extensions.rb
Defined Under Namespace
Modules: PageExtensions, PagePartExtensions, PagesControllerExtensions
Classes: Base, Manager
Class Method Summary
collapse
Class Method Details
.current_factory ⇒ Object
2
3
4
|
# File 'lib/page_factory.rb', line 2
def self.current_factory
@current_factory ||= PageFactory::Base
end
|
.current_factory=(factory) ⇒ Object
6
7
8
9
10
11
|
# File 'lib/page_factory.rb', line 6
def self.current_factory=(factory)
factory = factory.constantize if factory.is_a?(String)
if factory.nil? or factory <= PageFactory::Base
@current_factory = factory
end
end
|