lib/jets/klass.rb
# from_path allows us to load any app classes in consistent way for
# app/controllers, app/jobs, and app/functions.
from_path allows us to load any app classes in consistent way for
app/controllers, app/jobs, and app/functions.
from_path allows us to load any app classes in consistent way for app / controllers app / jobs and app / functions .
def from_path(path)
      class_name = class_name(path)
      if path.include?("/functions/") 
        load_anonymous_class(class_name, path)
      end
      class_name.constantize 
    end
def from_path ( path ) class_name = class_name ( path ) if path . include? ( "/functions/" ) load_anonymous_class ( class_name , path ) end class_name . constantize end
from_path allows us to load any app classes in consistent way for
app/controllers, app/jobs, and app/functions.
from_path allows us to load any app classes in consistent way for app / controllers app / jobs and app / functions .
# simple function # autoload or nothing if load_anonymous_class called
path
<not_specific>