Project

commandoes

0.0
No commit activity in last 3 years
No release in over 3 years
Commandoes is a library to help build the series of objects needed for the command design pattern. It can help wtih building commands, handlers to execute commands, and command registries.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.5
~> 1.14
~> 5.0
~> 10.0
 Project Readme

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
  2. Registry & Dispatcher

PLUGINS

Commandos uses a plugin system similar to sequel or roda to extend the behavior of your command objects.

EXAMPLE OF A CUSTOM PLUGIN

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.