Sha256: 9dac79c4d06fbc45bef3ecc445b52e44d4f44051c31bfdd1af9a39c0460b73d0

Contents?: true

Size: 349 Bytes

Versions: 1

Compression:

Stored size: 349 Bytes

Contents

module Xdrgen::Generators
  extend ActiveSupport::Autoload

  autoload :Base
  autoload :Ruby
  autoload :Go
  autoload :Javascript
  autoload :Java
  autoload :Elixir
  autoload :Csharp

  def self.for_language(language)
    const_get language.to_s.classify
  rescue NameError
    raise ArgumentError, "Unsupported language: #{language}"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xdrgen-0.1.1 lib/xdrgen/generators.rb