Exception: Command::ResumeFrom

Inherits:
Exception
  • Object
show all
Defined in:
lib/command-set/command.rb

Overview

An overworked exception class. It captures details about the command being interrupted as it propagates up the stack.

Direct Known Subclasses

ResumeFromOnlyThis

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pause_deck, msg = "") ⇒ ResumeFrom

Returns a new instance of ResumeFrom.



97
98
99
100
101
# File 'lib/command-set/command.rb', line 97

def initialize(pause_deck, msg = "")
  super(msg)
  @setup = CommandSetup.new
  @pause_deck = pause_deck
end

Instance Attribute Details

#pause_deckObject (readonly)

Returns the value of attribute pause_deck.



103
104
105
# File 'lib/command-set/command.rb', line 103

def pause_deck
  @pause_deck
end

#setupObject (readonly)

Returns the value of attribute setup.



103
104
105
# File 'lib/command-set/command.rb', line 103

def setup
  @setup
end