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:
parent
81554dda0a
commit
3f7448ed4c
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue