News for hackers. Stuff that matters.
Re:Happy Birthday, Ruby by bonquesha99 on Thursday January 10, 2019 @04:37PM (#18878460)
That's what it's doing, arguments are preserved:

    # don't really know what IO.inspect is doing
    # but guessing something like this?
    def IO.inspect(value, label:)
      puts "#{label}: #{value.inspect}"
      value
    end

    value.pipe do
      IO.inspect(label: "A")
      do_something
      IO.inspect(label: "B")
      do_something_else
      IO.inspect(label: "C")
    end
Re:Happy Birthday, Ruby by dnautics on Thursday January 10, 2019 @05:13PM (#18878807)
oh I didn't get past "Matz on Ruby"! Sorry. I do think the native pipe operator is prettier.