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:
commit
6bab41cf10
1 changed files with 0 additions and 6 deletions
|
@ -68,10 +68,6 @@ class Pry
|
||||||
new.help
|
new.help
|
||||||
end
|
end
|
||||||
|
|
||||||
def source_location
|
|
||||||
block.source_location
|
|
||||||
end
|
|
||||||
|
|
||||||
def source_file
|
def source_file
|
||||||
Array(block.source_location).first
|
Array(block.source_location).first
|
||||||
end
|
end
|
||||||
|
@ -111,8 +107,6 @@ class Pry
|
||||||
|
|
||||||
def source; self.class.source; end
|
def source; self.class.source; end
|
||||||
|
|
||||||
def source_location; self.class.source_location; end
|
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
def name
|
def name
|
||||||
super.to_s == "" ? "#<class(Pry::Command #{match.inspect})>" : super
|
super.to_s == "" ? "#<class(Pry::Command #{match.inspect})>" : super
|
||||||
|
|
Loading…
Reference in a new issue