All pastes #963806 Raw Edit

Selig Arkin

public ruby v1 · immutable
#963806 ·published 2008-03-30 20:40 UTC
rendered paste body
class myPlugin < ObjC::GBPlugin  imethod "pluginInfo", do    myInfo = self.super.pluginInfo;    #myInfo is a GBData, subclass of NSMutableDictionary    # call myInfo.set_withValue for each thing    myInfo.set_withValue("Type", "Ruby");    myInfo.set_withValue("Name", "myPlugin");    myInfo.set_withValue("Desc", "a simple useless ruby plugin");    myInfo.set_withValue("Version", "1.0");  end  imethod "evtOnLoad", do    # our load code here.  end  imethod "evtOnUnload", do    #our unload code here  endend