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

Add support for defining additional methods #1

Merged
merged 1 commit into from Dec 26, 2019
Merged

Add support for defining additional methods #1

merged 1 commit into from Dec 26, 2019

Conversation

mattrberry
Copy link
Contributor

Additional methods can now optionally be defined in a code block.

  • Updated dataclass.cr to yield code block
  • Updated spec/dataclass_spec.cr to test changes
  • Updated README.md
    • Added an example
    • Removed limitation from "Known Limitations"
  • Cleaned initialize definition in dataclass.cr

Additional methods can now optionally be defined in a code block.

- Updated dataclass.cr to yield code block
- Updated spec/dataclass_spec.cr to test changes
- Updated README.md
  - Added an example
  - Removed limitation from "Known Limitations"
- Cleaned `initialize` definition in dataclass.cr
@lbarasti
Copy link
Owner

Ah! {{yield}} is clever, I hadn't thought it would be so simple to add block support.
Thanks for this @mattrberry. I'll release ASAP.

@lbarasti lbarasti merged commit 08b99a8 into lbarasti:master Dec 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants