Class: Rubygoo::AdapterFactory
- Inherits:
-
Object
- Object
- Rubygoo::AdapterFactory
- Defined in:
- lib/rubygoo/adapters/adapter_factory.rb
Instance Method Summary collapse
Instance Method Details
#app_for(platform, *args) ⇒ Object
4 5 6 7 8 |
# File 'lib/rubygoo/adapters/adapter_factory.rb', line 4 def app_for(platform,*args) require "#{platform}_app_adapter" Rubygoo.const_get("#{platform.to_s.capitalize}AppAdapter").new *args # ::ObjectSpace.const_get("#{platform.to_s.capitalize}AppAdapter").new *args end |
#renderer_for(platform, *args) ⇒ Object
10 11 12 13 |
# File 'lib/rubygoo/adapters/adapter_factory.rb', line 10 def renderer_for(platform,*args) require "#{platform}_render_adapter" Rubygoo.const_get("#{platform.to_s.capitalize}RenderAdapter").new *args end |