class Pry::InputCompleter

def select_message(path, receiver, message, candidates)

def select_message(path, receiver, message, candidates)
  candidates.grep(/^#{message}/).collect do |e|
    next unless e =~ /^[a-zA-Z_]/
    path.call(receiver + "." + e)
  end.compact
end