File.prototype.hasMethod()

Returns true if the file implements the given method.

Syntax

file.hasMethod(methodName string) boolean

Description

Returns true if the file implements the given method. Both user-space and kernel-space methods are considered.

Examples

Empty file does not implement any methods.

User space method.

Kernel method.