RubyGems Navigation menu

called_from 0.1.0

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].

Versions:

  1. 0.1.0 - November 1, 2009 (16.5 KB)

Authors:

  • makoto kuata

Owners:

8e1efd5009e8efa38aa4393bc223f3c5

Total downloads 3,054

For this version 3,054

Required Ruby Version: None

Licenses:

N/A

Gemfile:
gem 'called_from', '~> 0.1.0' = Copy to clipboard Copied!

install:
gem install called_from = Copy to clipboard Copied!

Links: