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

Pry::WrappedModule::Candidate, added source_file and source_line

For consistency with Pry::WrappedModule and Pry::Method, etc
This commit is contained in:
John Mair 2012-12-20 20:13:19 +01:00
parent 81554dda0a
commit 3f7448ed4c

View file

@ -12,9 +12,11 @@ class Pry
# @return [String] The file where the module definition is located.
attr_reader :file
alias_method :source_file, :file
# @return [Fixnum] The line where the module definition is located.
attr_reader :line
alias_method :source_line, :line
# Methods to delegate to associated `Pry::WrappedModule instance`.
to_delegate = [:lines_for_file, :method_candidates, :name, :wrapped,