Class: Cri::Base

Inherits:
Object
  • Object
show all
Includes:
NanDoc::TaskCommon
Defined in:
lib/nandoc/cri-hacks.rb

Instance Method Summary collapse

Methods included from NanDoc::TaskCommon

#task_abort

Instance Method Details

#remove_command(command_class) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/nandoc/cri-hacks.rb', line 5

def remove_command command_class
  if idx = @commands.index{|x| x.kind_of?(command_class) }
    @commands.delete_at(idx)
  else
    task_abort("command not found of class #{command_class}")
  end
end