Flags.rb
RubyMud/Flags/Flags.rb · 257 B
From the archive rbmud-0.1rc2.tar.gz
Download the archive « Back to the archive contents
require "Flag.rb"
class Flags
private_class_method :new
@@flags = []
def Flags.getFlags()
return @@flags
end
def Flags.add(flag)
@@flags.push(flag)
end
end
d = Dir.new("Flags")
d.each do |x|
if (x.include?(".rb"))
require x
end
end