Module: GenomerPluginValidate::Group

Defined in:
lib/genomer-plugin-validate/group.rb

Defined Under Namespace

Classes: Annotations

Class Method Summary collapse

Class Method Details

.groupsObject



10
11
12
13
14
15
# File 'lib/genomer-plugin-validate/group.rb', line 10

def self.groups
  load
  Hash[constants.map do |name|
    [name.to_s.downcase,const_get(name)]
  end]
end

.loadObject



3
4
5
6
7
8
# File 'lib/genomer-plugin-validate/group.rb', line 3

def self.load
  path = File.join(File.dirname(__FILE__),'..','genomer-plugin-validate','group','*')
  Dir[path].each do |i|
    require i if i =~ /\.rb/
  end
end