Module: Yapra

Extended by:
Yapra
Included in:
Yapra
Defined in:
lib/yapra.rb,
lib/yapra/version.rb

Defined Under Namespace

Modules: Inflector, LegacyPlugin, Plugin, VERSION Classes: Config, Pipeline, PipelineBase, RbPipeline, Runtime

Instance Method Summary collapse

Instance Method Details

#load_class_constant(module_name) ⇒ Object

TODO create util class, and move this method.



31
32
33
34
# File 'lib/yapra.rb', line 31

def load_class_constant module_name
  require Yapra::Inflector.underscore(module_name)
  return Yapra::Inflector.constantize(module_name)
end