Class: MVCLI::Loader

Inherits:
Object
  • Object
show all
Includes:
ActiveSupport::Inflector
Defined in:
lib/mvcli/loader.rb

Instance Method Summary collapse

Instance Method Details

#load(type, name, *args, &block) ⇒ Object



7
8
9
# File 'lib/mvcli/loader.rb', line 7

def load(type, name, *args, &block)
  constantize(camelize("#{name}_#{type}")).new(*args, &block)
end