class MotherBrain::CommandNotFound

Attributes

name[R]
parent[R]

Public Class Methods

new(name, parent) click to toggle source

@param [String] name

name of the command that was not found

@param [MB::Plugin, MB::Component] parent

plugin that we searched for the command on
# File lib/mb/errors.rb, line 295
def initialize(name, parent)
  @name   = name
  @parent = parent
end

Public Instance Methods

message() click to toggle source
# File lib/mb/errors.rb, line 300
def message
  "#{parent.class} '#{parent}' does not have the command: '#{name}'"
end