hasMethod method
- Checks if object has a method with specified name..
-
obj
an object to introspect.
-
name
a name of the method to check.
- Returns true if the object has the method and false if it doesn't.
-
obj
an object to introspect.name
a name of the method to check.