Skip to content

Instantly share code, notes, and snippets.

@nuke99
Created May 24, 2012 09:05
Show Gist options
  • Save nuke99/2780352 to your computer and use it in GitHub Desktop.
Save nuke99/2780352 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
module Loka
@info = {}
def add(cmd,klass)
@info[cmd] = klass
end
class Test
include Loka
Loka.add('test',self)
def initialize
#nothing to do here
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment