Skip to content

Instantly share code, notes, and snippets.

@nuke99
Created May 23, 2012 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nuke99/4edc359e79aec918fde8 to your computer and use it in GitHub Desktop.
Save nuke99/4edc359e79aec918fde8 to your computer and use it in GitHub Desktop.
#!/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