Sha256: 827feee4d8260d2f110a8174966f44a83363d4056f1fd22f3cca50bff7f9ff72

Contents?: true

Size: 336 Bytes

Versions: 2

Compression:

Stored size: 336 Bytes

Contents

module GenomerPluginValidate::Group

  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

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

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
genomer-plugin-validate-0.0.2 lib/genomer-plugin-validate/group.rb
genomer-plugin-validate-0.0.1 lib/genomer-plugin-validate/group.rb