Selig Arkin
public ruby v1 · immutableclass 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