lib/torqml/plugins.rb
# Preloads ruby modules of plugins.
#
# @param [Pathname] dir path to the directory that contains plugins
Preloads ruby modules of plugins.
Preloads ruby modules of plugins .
def preload(dir)
      Pathname.glob(dir + '*/plugin.rb').each do |path|
        require(path.realpath.dirname + path.basename)
      end
    end
def preload ( dir ) Pathname . glob ( dir + '*/plugin.rb' ) . each do | path | require ( path . realpath . dirname + path . basename ) end end
Preloads ruby modules of plugins.
Preloads ruby modules of plugins .
# load ruby modules
dir
<not_specific>
<not_specific>
dir path to the directory that contains plugins
dir path to the directory that contains plugins