Last active
August 29, 2015 14:03
-
-
Save jkutner/d7f4b5c67418c4cb3908 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo | |
def self.my_attr(name, type, annotations=[]) | |
annotations.each do |a| | |
java_annotation(a) | |
end | |
java_field "public #{type} #{name}" | |
end | |
my_attr :firstname, "String", ["Required"] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment