Module: MethodSource::ReeSourceLocation

Included in:
SourceLocation::MethodExtensions, SourceLocation::ProcExtensions, SourceLocation::UnboundMethodExtensions
Defined in:
lib/method_source/source_location.rb

Instance Method Summary collapse

Instance Method Details

#source_locationObject

Ruby enterprise edition provides all the information that's needed, in a slightly different way.



5
6
7
# File 'lib/method_source/source_location.rb', line 5

def source_location
  [__file__, __line__] rescue nil
end