Class: CommandDesigner::Dsl
- Inherits:
-
ContextFilters::Context
- Object
- ContextFilters::Context
- CommandDesigner::Dsl
- Defined in:
- lib/command-designer/dsl.rb
Overview
Add support for command in Context using Filters
Instance Method Summary collapse
-
#command(command_name, *args) ⇒ String
evaluates the given command_name in current context (applies matching filters).
Instance Method Details
#command(command_name, *args) ⇒ String
evaluates the given command_name in current context (applies matching filters)
17 18 19 20 21 |
# File 'lib/command-designer/dsl.rb', line 17 def command(command_name, *args) cmd = CommandDesigner::Command.new(command_name, *args) evaluate_filters(cmd, :change) cmd.command end |