Hello All.

I want to translate the following VB code to Ruby. Does anybody know
how to handle these events?

Dim WithEvents myOBJ As SomeOBJ

Private Sub myOBJ_SomeEvent(ByVal nCommand As Integer,
                                  ByRef cResult As String)

---
Also things like this...

Event SomeFunction(ByVal n as Integer)

SomeFunction(5)

Thanks in Advance.