-
-
Save nuke99/6c7d3e0e3dbdf781f93a 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 Store | |
def initialize | |
@info = {} | |
end | |
def self.set(command,type,discription) | |
pp command | |
@info[command] = {:disc=>discription,:type=>type} | |
puts "=============================================" | |
end | |
def self.onit | |
return @info | |
end | |
end | |
class HelpSet | |
include Singleton | |
#attr_accessor :info | |
def set(command,type,discription) | |
#@info[command] = {:disc=>discription,:type=>type} | |
#pp @info | |
#puts "=============================================" | |
Store::set(command,type,discription) | |
end | |
def 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