Module: Ellipses::Client::Command::DSL
- Included in:
- Ellipses::Client::Command
- Defined in:
- lib/ellipses/client/command.rb
Instance Method Summary collapse
Instance Method Details
#command(name, argc: (0..)) ⇒ Object
19 20 21 |
# File 'lib/ellipses/client/command.rb', line 19 def command(name, argc: (0..)) Commands.register name, Proto.new(name: name, klass: self, argc: Support.to_range(argc)) end |