RubyGems Navigation menu

pluggability 0.0.1

Pluggability 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 Pluggability, 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. 0.9.0 - June 08, 2023 (18KB)
  2. 0.8.0 - December 01, 2022 (18KB)
  3. 0.7.0 - February 05, 2020 (23.5KB)
  4. 0.6.0 - March 21, 2018 (25KB)
  5. 0.5.0 - January 19, 2018 (25KB)
  6. 0.0.1 - August 03, 2012 (19KB)
全てのバージョンを表示(全14件)

Runtime依存関係 (1):

loggability ~> 0.5

Development依存関係 (5):

hoe ~> 3.0
hoe-deveiate ~> 0.1
hoe-highline ~> 0.1.0
hoe-mercurial ~> 1.4.0
rdoc ~> 3.10

所有者:

作者:

  • Martin Chase, Michael Granger

SHA 256チェックサム:

2b476f18707fcfca96b49d6cc7ff1539cd4eb4b19c5c1c6a0035fa6db44c8fe1

累計ダウンロード数 43,087

このバージョンのみ 2,895

ライセンス:

N/A

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

リンク: