Permalink
Browse files

WrappedModule::Candidate: exposed number_of_candidates as public method

  • Loading branch information...
1 parent 0e34914 commit a270fbc1ec98ca39f5b8d40a92c66b2a9490919f @banister banister committed with kyrylo Feb 10, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/pry/module_candidate.rb
@@ -23,9 +23,10 @@ class Candidate
# 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)

0 comments on commit a270fbc

Please sign in to comment.