Last active
December 12, 2015 07:18
-
-
Save ochafik/4735506 to your computer and use it in GitHub Desktop.
Beans factory example
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
beans.create[MyBean]( | |
foo = 10, | |
bar = 12 | |
) | |
/* | |
UPDATE: the latest code in github (see link below) implements | |
the following, more flexible and friendly syntax: | |
new MyBean().set( | |
foo = 10, | |
bar = 12 | |
) | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment