Class: Flexite::BaseFactory

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
app/factories/flexite/base_factory.rb

Direct Known Subclasses

ServiceFactory

Instance Method Summary collapse

Instance Method Details

#get(name, *args) ⇒ Object



4
5
6
# File 'app/factories/flexite/base_factory.rb', line 4

def get(name,  *args)
  "Flexite::#{@store[name]}".constantize.new(*args)
end