Sha256: 06301c05368925bee48a26593ba54925a2d2f66149cc83ba469ec299ce7c3ca9

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

= Plugin

* home: http://rubyworks.github.com/plugin


== DESCRIPTION

Plugin is a straighforward plugin manager for Ruby.
It can handle RubyGems, Rolls and Ruby's standard
site locals.


== USAGE

The Plugin library does two signifficant things. First it designates
a location in the ruby $LOAD_PATH for plugins. Second it provides
an easy to use function for finding plugin scripts stored in the
designated location.

Place all plugin code in your project's <tt>lib/plugin/<name>/</tt>,
or if you have altered the load path for your project, you can
place it in the alternae location under <tt>plugin/<name></tt>.

To find plugins, simply provide a path or file glob to the
<tt>Plugin.find</tt> function, and it will return all matches
found within current and most recent versions of libraries.

For example, it wil be common for pluggable applications to require all
the plugins they find:

  require 'plugin'

  Plugin.find('myapp/*.rb').each do |file|
    require(file)
  end

Alternately you might load plugins only as needs. Say, it a command-line
call required it.


== COPYRIGHTS

Copyright (c) 2009 Thomas Sawyer

Plugin is release under the terms of the LGPL.

See COPYING for details.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
plugin-0.9 README