Closed Spone closed 1 year ago
Hi! Thanks for a very useful gem :)
Would you consider adding an #invalid? method that returns the inverse of #valid?, similarly to ActiveModel?
#invalid?
#valid?
This would make things clearer in some cases:
- return nil if @isbn.blank? || !Barkick::GTIN.new(@isbn, type: :isbn13).valid? + return nil if @isbn.blank? || Barkick::GTIN.new(@isbn, type: :isbn13).invalid?
I can dedicate some time to a PR. Let me know.
Hey @Spone, thanks for the suggestion. However, it's not something I'd like to include.
Thanks for the reply.
Hi! Thanks for a very useful gem :)
Would you consider adding an
#invalid?
method that returns the inverse of#valid?
, similarly to ActiveModel?This would make things clearer in some cases:
I can dedicate some time to a PR. Let me know.