1
0
Fork 0
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:
John Mair 2013-02-10 18:46:55 +01:00 committed by Kyrylo Silin
parent 0e34914c84
commit a270fbc1ec

View file

@ -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)