RubyGems Navigation menu

strategic 1.2.0

if/case conditionals can get really hairy in highly sophisticated business domains. Domain model inheritance can help remedy the problem, but you don't want to dump all logic variations in the same domain models. Strategy Pattern solves that problem by externalizing logic variations to separate classes outside the domain models. One difficulty with implementing Strategy Pattern is making domain models aware of newly added strategies without touching their code (Open/Closed Principle). Strategic solves that problem by supporting Strategy Pattern with automatic discovery of strategies and ability fetch the right strategy without conditionals. This allows you to make any domain model "strategic" by simply following a convention in the directory/namespace structure you create your strategies under so that the domain model automatically discovers all available strategies.

Gemfile:
= In die Zwischenablage kopieren Kopiert!

installieren:
=

Versionen:

  1. 1.2.0 - January 23, 2022 (11,5 KB)
  2. 1.1.0 - September 14, 2021 (11,5 KB)
  3. 1.0.1 - September 14, 2021 (11 KB)
  4. 1.0.0 - March 29, 2021 (11 KB)
  5. 0.9.1 - March 17, 2021 (9,5 KB)
Zeige alle Versionen (7 total)

Development Abhängigkeiten (9):

bundler >= 1.0
coveralls ~> 0.8.23
jeweler ~> 2.3.0
puts_debuggerer >= 0.8.1
rake-tui > 0
rdoc >= 3.12
rspec ~> 3.5.0
rspec-mocks ~> 3.5.0
simplecov ~> 0.16.1

Besitzer:

Pushed by:

Autoren:

  • Andy Maleh

SHA 256-Prüfsumme:

1a040d1ee11bd6576aa18b697360e290e75e881e8295ecfa645be1f0a15f7d2d

Downloads insgesamt 58.527

Für diese Version 49.265

Lizenz:

MIT

Erforderliche Ruby-Version: >= 0

Links: