1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

reverted Pry::Method file/line aliases because of stupid, stupid REE

This commit is contained in:
John Mair 2012-11-28 14:37:31 +01:00
parent 7e3721948d
commit 60c755ce41

View file

@ -334,14 +334,12 @@ class Pry
source_location.first
end
end
alias_method :file, :source_file
# @return [Fixnum, nil] The line of code in `source_file` which begins
# the method's definition, or `nil` if that information is unavailable.
def source_line
source_location.nil? ? nil : source_location.last
end
alias_method :line, :source_line
# @return [Range, nil] The range of lines in `source_file` which contain
# the method's definition, or `nil` if that information is unavailable.