CodeQL library for Ruby
codeql/ruby-all 0.8.15-dev (changelog, source)
Search

Member predicate Method::isPrivate

Holds if this method is private. All methods with the name prefix private are private below:

class C
  private def private1
  end

  def public
  end

  def private2
  end
  private :private2

  private

  def private3
  end

  def private4
  end
end
predicate isPrivate()