RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

The Joy of a Single-Purpose Class: From String Mutation to Message Composition

I can’t remember the last time I had this much joy introducing such a simple class. Started with Ruby 3.4 deprecation warnings, ended with a solution that leverages to_str for implicit string conversion and kills primitive obsession.

https://blog.arkency.com/the-joy-of-a-single-purpose-class-from-string-mutation-to-message-composition/

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in