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!

⚙️ Use YML, Thor, and inject_into_file to make your life easier!

I’ve been working on simplifying the repetitive file edits we often make in Rails projects.

Using inject_into_file from Thor, YAML, and a bit of Ruby, I built a script that lets you define what to inject into which file — declaratively.

https://rubystacknews.com/2025/04/11/%f0%9f%94%a7-how-i-used-inject_into_file-and-yaml-to-automate-file-changes-in-rails/

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