Sha256: 7251220315f36ce37a1887d695c502c7e37258eb43a66a40036b4114f593210f
Contents?: true
Size: 929 Bytes
Versions: 1
Compression:
Stored size: 929 Bytes
Contents
# COMMANDOS Commandos is a project designed to help any ruby app use the command pattern to change state. ## PREREQUISITES * ruby-2.4.0 ## INSTALLATION In your Gemfile ``` gem 'commandos' ``` ## EXAMPLES 1. [Command & Handler](./examples/command_and_handler.md) 2. [Registry & Dispatcher](./examples/command_registry_and_dispatcher.md) ## PLUGINS Commandos 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 Commandos 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.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
commandos-0.1.5 | README.md |