Project

dorian-all

0.0
The project is in a healthy, maintained state
Runs a Ruby expression against every input line and prints the transformed output.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 1.2.3, < 2
 Project Readme

dorian-all

Run one Ruby snippet against the whole input.

Install

gem install dorian-all

Also included in the aggregate gem:

gem install dorian

Usage

all [file ...] "ruby code"

Run all -h for generated option details and all -v for the installed version.

Notes

  • Sets both it and lines to the complete input. Stdin input is available as an array of stripped lines; file input is concatenated as a string.

Examples

Join all incoming lines

printf '1\n2\n3\n' | all "puts lines.join"

Output:

123