Skip to content

Instantly share code, notes, and snippets.

@DylanLukes
Created August 19, 2010 22:43
Show Gist options
  • Save DylanLukes/539125 to your computer and use it in GitHub Desktop.
Save DylanLukes/539125 to your computer and use it in GitHub Desktop.
require "Redstone.rb"
class RedstonePlugin
@callback
@wrapper
def initialize(redstone)
@wrapper = redstone
@callback = method(:pluginMagic)
end
def register(redstone)
redstone.cmds.push
end
def pluginMagic
puts "Hello world"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment