Module: GenomerPluginValidate::Group
- Defined in:
- lib/genomer-plugin-validate/group.rb
Defined Under Namespace
Classes: Annotations
Class Method Summary collapse
Class Method Details
.groups ⇒ Object
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 |
.load ⇒ Object
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 |