Exception: Cyperful::AbstractCommand Abstract

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cyperful/commands.rb

Overview

This class is abstract.

Direct Known Subclasses

ExitCommand, ResetCommand

Instance Method Summary collapse

Instance Method Details

#backtraceObject



10
11
12
# File 'lib/cyperful/commands.rb', line 10

def backtrace
  []
end

#to_sObject

don’t print normal error/backtrace



5
6
7
8
9
# File 'lib/cyperful/commands.rb', line 5

def to_s
  command_name =
    self.class.name.split("::").last.chomp("Command").underscore
  "(Captured cyperful command: #{command_name})"
end