If a class has built checks and raises an exception if it finds
something wrong, how can I tell which instance had the error? I know
there's an object_id, but can I know the name of the objects own
huey = Nephew.new
duey = Nephew.new
luey = Nephew.new
duey.raise_error_on_purpose_just_for_fun #-> "Nephew 'duey' raised an
Also, can an instance know his 'path' from the top-level?
@huey = Nephew.new
@duey = Nephew.new
@luey = Nephew.new
Donald1 = Donald.new
Donald2 = Donald.new
#-> "Nephew Donald1.huey raised an error"
Posted via http://www.ruby-forum.com/.