Why Nostr? What is Njump?
2025-02-13 17:38:14
in reply to

Bradley Schaefer on Nostr: nprofile1q…x2r82 I’ve used conversion methods in the past and left the ...

I’ve used conversion methods in the past and left the constructor alone.

module Header::Conversion
def Header(value)
# … much the same as your constructor
end
end

include Header::Conversion
Header(value) # => a Header or whatever

I don’t have any problem with your approach, other than wanting to try to eliminate nils wherever possible
Author Public Key
npub1wgglexfyz8aaulvxknnmqs2yd95zl6mzkyy3r8n08ez3uqltdfxqvdackf