Exception: StratagemError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/stratagem.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ StratagemError

Returns a new instance of StratagemError.



7
8
9
10
# File 'lib/stratagem.rb', line 7

def initialize(*args)
  super(args.first)
  (@@all ||= []) << self
end

Instance Attribute Details

#targetObject

Returns the value of attribute target.



5
6
7
# File 'lib/stratagem.rb', line 5

def target
  @target
end