Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scala support #43

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ Xdrgen is a very early project. Aside from the test fixtures in
are the .x files used for the
[stellar-core project](https://github.com/stellar/stellar-core).

Xdrgen presently supports three output languages: ruby, javacript, java, and golang:
Xdrgen presently supports the following output languages:

- ruby: complete support
- javascript: complete support
- java: complete support
- golang: currently using a fork of go-xdr, but has complete support
- scala: complete support

Testing is _very_ sparse, but will improve over time.

Expand Down
3 changes: 2 additions & 1 deletion lib/xdrgen/generators.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ module Xdrgen::Generators
autoload :Go
autoload :Javascript
autoload :Java
autoload :Scala

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