diff --git a/lib/pry/method.rb b/lib/pry/method.rb index d621c9ff..259d58e1 100644 --- a/lib/pry/method.rb +++ b/lib/pry/method.rb @@ -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.