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.



52
53
54
55
56
# File 'lib/command-set/command.rb', line 52

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.



58
59
60
# File 'lib/command-set/command.rb', line 58

def pause_deck
  @pause_deck
end

#setupObject (readonly)

Returns the value of attribute setup.



58
59
60
# File 'lib/command-set/command.rb', line 58

def setup
  @setup
end