Created
May 24, 2012 13:52
-
-
Save nuke99/2781661 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'lib/command_execution' | |
require 'lib/zcode_mods' | |
class Core | |
#include Super | |
@@prompt = nil | |
@@active_module = nil | |
@@target = nil | |
#Core Command Gather | |
Execution.loadem | |
Execution.commands.each do |mod| | |
include(mod) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'lib/helpmod' | |
require 'lib/command_execution' | |
require 'lib/zcode_mods' | |
require 'lib/hashcode' | |
class Test < Core | |
include CodeMod | |
CodeMod.code('test',self) | |
ModSet.instance.setm('test',"this is a sample plguin ") | |
def initialze | |
@@prompt = "testagainmodule" | |
end | |
def inside | |
puts "Your inside "+self | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment