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

Merge pull request #1837 from pry/source-location-cleanup

command: delete #source_location
This commit is contained in:
Kyrylo Silin 2018-11-01 14:14:26 +08:00 committed by GitHub
commit 6bab41cf10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,10 +68,6 @@ class Pry
new.help
end
def source_location
block.source_location
end
def source_file
Array(block.source_location).first
end
@ -111,8 +107,6 @@ class Pry
def source; self.class.source; end
def source_location; self.class.source_location; end
class << self
def name
super.to_s == "" ? "#<class(Pry::Command #{match.inspect})>" : super