module MethodSource::SourceLocation::ProcExtensions

Public Instance Methods

source_location() click to toggle source

Return the source location for a Proc (Rubinius only) @return [Array] A two element array. First element is the

file, second element is the line in the file where the
proc definition is found.
# File lib/method_source/source_location.rb, line 64
def source_location
  [block.file.to_s, block.line]
end