This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "schemaVersion": 1, | |
| "label": "coverage", | |
| "message": "37.26%", | |
| "color": "red" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Method do_work flattens an array given as input | |
| # | |
| # * if the input is not an array, an ArgumentError will be thrown | |
| def do_work(array) | |
| raise ArgumentError, "argument should be an array" unless array.is_a? Array | |
| array.flatten | |
| end |