RubyGems Navigation menu

pluginfactory 1.0.8

PluginFactory is a mixin module that turns an including class into a factory for its derivatives, capable of searching for and loading them by name. This is useful when you have an abstract base class which defines an interface and basic functionality for a part of a larger system, and a collection of subclasses which implement the interface for different underlying functionality. An example of where this might be useful is in a program which talks to a database. To avoid coupling it to a specific database, you use a Driver class which encapsulates your program's interaction with the database behind a useful interface. Now you can create a concrete implementation of the Driver class for each kind of database you wish to talk to. If you make the base Driver class a PluginFactory, too, you can add new drivers simply by dropping them in a directory and using the Driver's `create` method to instantiate them:

Gemfile:
= クリップボードにコピー コピー完了!

インストール:
=

バージョン履歴:

  1. 1.0.8 - February 20, 2012 (20.5KB)
  2. 1.0.7 - September 27, 2010 (50KB)
  3. 1.0.6 - March 23, 2010 (45KB)
  4. 1.0.5 - November 06, 2009 (44KB)
  5. 1.0.4 - February 25, 2009* (42.5KB)
全てのバージョンを表示(全7件)

Development依存関係 (6):

hoe ~> 2.13
hoe-deveiate ~> 0.0
hoe-highline ~> 0.0.1
hoe-mercurial ~> 1.3.1
hoe-mercurial ~> 1.3.1
rdoc ~> 3.10

所有者:

作者:

  • Martin Chase, Michael Granger

SHA 256チェックサム:

80da559691d49feac94607689a972d25beb2bac0475d5c0239f33a33de48bafe

累計ダウンロード数 133,195

このバージョンのみ 66,946

ライセンス:

N/A

必要なRubyのバージョン: なし

リンク: