I cannot follow what caller
does in these exception raising statements.
raise InterfaceException , "Error", caller
raise ArgumentError, " Error", caller[1..-1]
I know that Object#caller
sets and sends stack trace to upper level in hierarchy. What is the interpretation of the arguments 1..-1
of the method caller
?