All pastes #963821 Raw Edit

Template-ish Ruby plugin for GB3

public ruby v1 · immutable
#963821 ·published 2008-03-30 20:49 UTC
rendered paste body
#Template-ish Ruby plugin for GB3.4 AKA ObjSchongo  by Damon D'Amore#Written on Sunday March 30  2007 while eating some horrible potato things that sat in my freezer for at least month#Changed entirely when I misunderstood just about the entire thing.class Supermagicalrubytemplateplugin < ObjC::GBPlugin  imethod "pluginInfo", do    myInfo = self.super.pluginInfo;    #myInfo is a GBData, subclass of NSMutableDictionary.    # call myInfo.set_withValue for each.    #In the ("x", "y") the value on the left ("x") is what you are setting.    #The value on the right ("y") is what you are setting it as/to.    myInfo.set_withValue("Type", "Ruby");    myInfo.set_withValue("Name", "Supermagicalrubytemplateplugin");    myInfo.set_withValue("Desc", "a useless template plugin for Ruby.");    myInfo.set_withValue("Version", "0.4");  end  imethod "evtOnLoad", do    # Joyous Greeting! :)  end  imethod "evtOnUnload", do    #Tearful Goodbye. :'(  endend