Categories: None [Edit]
called_from
Extention Module 'called_from' provides called_from() global function
which gets filename and line number of caller.
In short:
require 'called_from'
filename, linenum, function = called_from(1)
is equivarent to:
caller(1)[0] =~ /:(d+)( in `(.*)')?/
filename, linenum, function = $`, $1, $2
But called_from() is much faster than caller()[0].
Total
Ranking: 80,922 of 188,002
Downloads: 11,205
Daily
Ranking: 85,108 of 187,988
Downloads: 1
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 123,871 | 5,215 | merb_piece_cache |
Depends on
| Rank | Downloads | Name |
|---|
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | kwatch |