Skip to content

Instantly share code, notes, and snippets.

@ochafik
Last active December 12, 2015 07:18
Show Gist options
  • Save ochafik/4735506 to your computer and use it in GitHub Desktop.
Save ochafik/4735506 to your computer and use it in GitHub Desktop.
Beans factory example
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