Categories: None [Edit]

called_from

https://rubygems.org/gems/called_from
https://github.com/kwatch/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: 76,285 of 180,530
Downloads: 10,610

Daily

Ranking: 95,592 of 180,517
Downloads: 0

Depended by

RankDownloadsName
121,6814,637merb_piece_cache

Depends on

RankDownloadsName

Owners

#GravatarHandle
1iconkwatch