Skip to content

Commit

Permalink
[Truffle] Document DispatchHeadNode#doesRespondTo.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Jan 2, 2015
1 parent fb9199f commit 199afcc
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -136,6 +136,12 @@ public long callLongFixnum(
this));
}

/**
* Check if a specific method is defined on the receiver object.
* This check is "static" and should only be used in a few VM operations.
* In many cases, a dynamic call to Ruby's respond_to? should be used instead.
* Similar to MRI rb_check_funcall().
*/
public boolean doesRespondTo(
VirtualFrame frame,
Object methodName,
Expand Down

0 comments on commit 199afcc

Please sign in to comment.