Class: Rundoc::CodeCommand::NoSuchCommand

Inherits:
Rundoc::CodeCommand show all
Defined in:
lib/rundoc/code_command/no_such_command.rb

Constant Summary

Constants inherited from Rundoc::CodeCommand

NEWLINE

Instance Attribute Summary

Attributes inherited from Rundoc::CodeCommand

#command, #contents, #keyword, #original_args, #render_command, #render_result

Instance Method Summary collapse

Methods inherited from Rundoc::CodeCommand

#hidden?, #initialize, #not_hidden?, #push, #to_md

Constructor Details

This class inherits a constructor from Rundoc::CodeCommand

Instance Method Details

#call(env = {}) ⇒ Object



4
5
6
# File 'lib/rundoc/code_command/no_such_command.rb', line 4

def call(env = {})
  raise "No such command registered with rundoc: #{@keyword.inspect} for '#{@keyword} #{@original_args}'"
end