mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
WrappedModule::Candidate: exposed number_of_candidates as public method
This commit is contained in:
parent
0e34914c84
commit
a270fbc1ec
1 changed files with 3 additions and 2 deletions
|
@ -23,9 +23,10 @@ class Pry
|
|||
# Methods to delegate to associated `Pry::WrappedModule
|
||||
# instance`.
|
||||
private_delegates = [:lines_for_file, :method_candidates,
|
||||
:yard_docs?, :number_of_candidates]
|
||||
:yard_docs?]
|
||||
|
||||
public_delegates = [:wrapped, :module?, :class?, :name, :nonblank_name]
|
||||
public_delegates = [:wrapped, :module?, :class?, :name, :nonblank_name,
|
||||
:number_of_candidates]
|
||||
|
||||
def_delegators :@wrapper, *(private_delegates + public_delegates)
|
||||
private(*private_delegates)
|
||||
|
|
Loading…
Add table
Reference in a new issue