hacks/const_method |
Public Methods |
Freeze an object, send it a message (without calling private or protected methods), and then unfreeze the object.
object | the object to send the message to. |
---|---|
args | the message to send. |
block | an optional code block to send. |
Returns: the return value from the method call.
class Module < Object |
Public Methods |
Given a list of methods, mark them as const. Const methods are called using const_send.
methods | a list of methods to mark as const methods. |
---|