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.



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

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

Instance Attribute Details

#targetObject

Returns the value of attribute target.



2
3
4
# File 'lib/stratagem.rb', line 2

def target
  @target
end