Sha256: 881e6073cfd50cb9b6fce2c7ac8aa784b3745a93ae79fa8b7e401d1b6ab5fd97

Contents?: true

Size: 367 Bytes

Versions: 6

Compression:

Stored size: 367 Bytes

Contents

## Add path to $LOAD_PATH -- gtaka555
##
## Add path to $LOAD_PATH plugin.
##
## - module: load_path
##   config:
##     path:
##       - /home/foo/ruby/lib/1
##       - /home/foo/ruby/lib/2
##       - /home/foo/ruby/lib/3
##

def load_path(config, data)
  return data  unless config.key?('path')

  config['path'].each {|path|
    $LOAD_PATH << path
  }

  data
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
yapra-0.2.2 legacy_plugins/load_path.rb
yapra-0.2.0 legacy_plugins/load_path.rb
yapra-0.1.3 legacy_plugins/load_path.rb
yapra-0.1.2 legacy_plugins/load_path.rb
yapra-0.1.0 legacy_plugins/load_path.rb
yapra-0.1.1 legacy_plugins/load_path.rb