Module: MethodSource::SourceLocation::ProcExtensions

### Home Classes Methods

### In Files

- lib/method_source/source_location.rb

### Methods

- #source_location

### Included Modules

- MethodSource::ReeSourceLocation

### Class/Module Index

Quicksearch

- MethodSource
- MethodSource::CodeHelpers
- MethodSource::CodeHelpers::IncompleteExpression
- MethodSource::ReeSourceLocation
- MethodSource::SourceLocation
- MethodSource::SourceLocation::MethodExtensions
- MethodSource::SourceLocation::ProcExtensions
- MethodSource::SourceLocation::UnboundMethodExtensions

No matching classes.

# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.