Module ProcSource
In: lib/proc_source.rb

Based heavily on code from github.com/imedo/background Big thanks to the imedo dev team!

Methods

Public Class methods

A hack for Ruby 1.9, otherwise returns true.

Ruby 1.9 returns an incorrect line number when a block is specified with do/end. It happens b/c the line number returned by Ruby 1.9 is based on the first line in the block which contains a token (i.e. not a new line or comment etc…).

NOTE: This won‘t work in cases where the incorrect line also contains a "do".

[Validate]