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

Predicate option for attribute #15

Open
sbellware opened this issue Aug 23, 2022 · 0 comments
Open

Predicate option for attribute #15

sbellware opened this issue Aug 23, 2022 · 0 comments
Labels
improvement Something that will be implemented to make an improvement or enhancement

Comments

@sbellware
Copy link
Contributor

attribute :some_attribute, predicate: true

Generates predicate method of the form:

def some_attribute?
  !!some_attribute
end
@sbellware sbellware added the improvement Something that will be implemented to make an improvement or enhancement label Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Something that will be implemented to make an improvement or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant