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

support for ArbitraryType #31

Closed
mmorihiro opened this issue Feb 11, 2017 · 0 comments
Closed

support for ArbitraryType #31

mmorihiro opened this issue Feb 11, 2017 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@mmorihiro
Copy link
Contributor

Tests

class Person(name: String, age: Int)

val config = ConfigFactory.parseString("""
                                          key = {  
                                            name = "foo"
                                            age = 20
                                          }
                                       """)
val person = config.extract<Person>("key")
person shouldBe Person("foo", 20)

Reference

@mmorihiro mmorihiro added the enhancement New feature or request label Feb 11, 2017
@mmorihiro mmorihiro added this to the release0.3 milestone Feb 11, 2017
@mmorihiro mmorihiro self-assigned this Feb 11, 2017
forestone23 pushed a commit that referenced this issue Feb 16, 2017
* support for ArbitraryType that has a primary-constructor(#31)

* Add a testcase for nested class(#31)

* Support for ArbitraryTypeCollection(#31)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants