class Barrymore::BotCommand

It is used for storing commands. You don’t need it

Attributes

continuation[RW]
execution[R]
name[R]

Public Class Methods

new(name, &block) click to toggle source
# File lib/barrymore.rb, line 19
def initialize(name, &block)
  raise(ArgumentError, 'no block given') unless block
  @name = name.freeze
  @execution = block
end