Sha256: c27b809514095076c9a5e3c4b3c650ce0aff2e97b71765c50717f5946e5d7b60
Contents?: true
Size: 1.07 KB
Versions: 3
Compression:
Stored size: 1.07 KB
Contents
# COMMANDOES Commandoes is a project designed to help any ruby app use the command pattern to change state. ## PREREQUISITES * ruby-2.3.1 ## DEPENDENCIES * ActiveModel::Validations ## INSTALLATION In your Gemfile ``` gem 'commandoes' ``` ## EXAMPLES 1. [Command & Handler](./examples/command_and_handler.md) 2. [Registry & Dispatcher](./examples/command_registry_and_dispatcher.md) ## PLUGINS Commandoes uses a plugin system similar to [sequel](https://github.com/jeremyevans/sequel) or [roda](https://github.com/jeremyevans/roda) to extend the behavior of your command objects. ### EXAMPLE OF A CUSTOM PLUGIN ```ruby module Commandoes module Plugins module ExamplePlugin module ClassMethods end module InstanceMethods end end end end ``` Any method in the `ClassMethods` module will be injected into the `IAmACommand` class. Any method in the `InstanceMethods` module will be injected into instances of `IAmACommand` objects. ### Commandoes::Plugins::ActiveModelPlugin This plugin is used to give commands active model like validation behavior.
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
commandoes-0.1.4 | README.md |
commandoes-0.1.3 | README.md |
commandoes-0.1.2 | README.md |