What is Nostr?
Dave Copeland :ruby: /
npub1p2v…jyrl
2025-02-13 17:32:49
in reply to nevent1q…us48

Dave Copeland :ruby: on Nostr: It occurs to me that you can override Class.new to do this and make a much cleaner ...

It occurs to me that you can override Class.new to do this and make a much cleaner API.

Any reason not to do this regularly? Feels weird to return `nil` from a constructor, but it would be darn handy a lot of times.

https://gist.github.com/davetron5000/1a6b394f4295f1b70062baab013d297f#file-new-rb

Author Public Key
npub1p2v0e36yqzyk6697anan9k3rp3jkmdhu026rcs3gka64xa7jjneq5cjyrl