method
get_file_and_line_from_caller
v1_9_2_180 -
Show latest stable
- Class:
RSS::Utils
get_file_and_line_from_caller(i=0)public
No documentation available.
# File lib/rss/utils.rb, line 12
def get_file_and_line_from_caller(i=0)
file, line, = caller[i].split(':')
line = line.to_i
line += 1 if i.zero?
[file, line]
end