I'm editing a .rb
file with about 3000 lines of code.
This file has about 30+ statements that does a .create(
create()
appears in many ways:
as part of another expression: puts Foo.create(...)
or
multiline:
Foo.create(
baa: "baz"
)
etc
We suspect there might be a bug close to the create()
s, so we want to add a line containing the word "byebug" to
the preceding line of any line containing create(
Can Emacs help me do this easily?