0.0
No commit activity in last 3 years
No release in over 3 years
A function that splits a string into an Array of stripped, non-empty lines: Strip_Lines(" test \n \n test ")
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

Split_Lines

A Ruby gem providing a single function, Split_Lines. It:

  • extracts each line from text.
  • strips each line.
  • rejects empty lines.
  • returns the lines in an Array.

Installation

gem install Split_Lines

Usage

require "Split_Lines"

Split_Lines %@
  cd /my_apps

  pwd
@
# --> [ 'cd /my_apps', 'pwd' ]

Run Tests

git clone git@github.com:da99/Split_Lines.git
cd Split_Lines
bundle update
bundle exec bacon spec/main.rb

...

The End.