Complete the code to use the pipeline operator to convert a string to uppercase.
result = "hello" [1] String.upcase
The pipeline operator |> passes the value on the left as an argument to the method on the right.
Complete the code to chain two methods using the pipeline operator.
result = " ruby " [1] String.strip [2] String.upcase
The pipeline operator |> allows chaining methods by passing the result of one method to the next.
Fix the error in the pipeline usage to correctly reverse and then capitalize a string.
result = "hello" [1] String.reverse [2] String.capitalize
The pipeline operator |> correctly passes the output of one method as input to the next.
Fill both blanks to create a pipeline that doubles a number and then converts it to a string.
result = 5 [1] 2.method(:*) [2] String
The pipeline operator |> is used twice to chain the multiplication and string conversion.
Fill all three blanks to create a pipeline that trims spaces, reverses, and then converts to uppercase.
result = " ruby " [1] String.strip [2] String.reverse [3] String.upcase
Use the pipeline operator |> for all three steps to chain the methods properly.