-
-
Save nuke99/4edc359e79aec918fde8 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 | |
# HelpSet class collects command name , definition and type of the command | |
# | |
require 'singleton' | |
require 'pp' | |
class HelpSet | |
#include Singleton | |
def initialize | |
@info = {} | |
end | |
def self.set(command,type,discription) | |
@info[command] = {:disc=>discription,:type=>type} | |
pp @info | |
puts "=============================================" | |
#Store.set(command,type,discription) | |
end | |
def self.onit | |
return @info | |
#return Store::onit | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment