Method: Sys::Proc::Helper::Inflector#resolve

Defined in:
lib/sys/proc/helper/inflector.rb

#resolve(loadable) ⇒ Object

Load constant from a loadable/requirable path

Parameters:

  • loadable (String)

Returns:

  • (Object)


23
24
25
26
27
# File 'lib/sys/proc/helper/inflector.rb', line 23

def resolve(loadable)
  require loadable

  @inflector.constantize(@inflector.classify(loadable))
end