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

Initable 0.0.0 #118

Closed
bkuhlmann opened this issue Jan 1, 2025 · 1 comment
Closed

Initable 0.0.0 #118

bkuhlmann opened this issue Jan 1, 2025 · 1 comment
Assignees
Labels

Comments

@bkuhlmann
Copy link

Link to the content

Hello 👋 Here's the web site.

Anything else

Allows you to reduce the amount of code needed to construct a new object. Example:

class Person
  include Initable[%i[req first], %i[req last]]
end

Person.new("Jill", "Smith").inspect
# "#<Person:0x00000001282e7308 @first=\"Jill\", @last=\"Smith\">"
@bkuhlmann
Copy link
Author

ℹ️ Closing since this has been mentioned in the newsletter. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants