Class: Dropdown::OutputStores::OutputStoreFactory
- Inherits:
-
Object
- Object
- Dropdown::OutputStores::OutputStoreFactory
- Defined in:
- lib/dropdown/output_stores/output_store_factory.rb
Class Method Summary collapse
Class Method Details
.create(store, *args) ⇒ Object
6 7 8 9 |
# File 'lib/dropdown/output_stores/output_store_factory.rb', line 6 def self.create(store, *args) constant_name = Inflector.new("#{store}_store").constant_name Dropdown::OutputStores.const_get(constant_name).new *args end |