Prev: Does Ruby allows setting something like SESSION variables.
Next: Is there a method I can call where:
From: Xeno Campanoli / Eskimo North and Gmail on 18 Jun 2010 16:03 If I have: class Blek def bM puts "trace #{self.somemethod}" end end bo = Blek.new bo.bM It will give me: trace bo.bM or trace bM ??? I want to set up stuff that tells me what method I am in, largely for raising exceptions in various circumstances, but I want to control the message myself, so I'd like specifically knowledge of the method name available as stated. -- "It's the preponderance, stupid!" - Professor Stephen Schneider, IPCC member |