Slide 36
Slide 36 text
github.com/prettier/plugin-ruby twitter.com/kddeisz
const { concat, group, indent, line } = require("../prettier");
function opassign(path, opts, print) {
const [variable, operator, value] = path.map(print, "body");
return group(
concat([
variable, " ", operator,
indent(concat([line, value]))
])
);
}
module.exports = opassign;