Instead of extending self for the whole class, you can create a block that extends from itself and define your static methods inside.
you would do something like this:
class << self
So, in your example, you would do something like this:
class Ping class << self def checkPings
and you can call it like this: Ping.checkPings
Joseph Jul 27 '16 at 18:58 2016-07-27 18:58
source share