wc.rb

A Ruby clone of Unix wc utility.

Installation

Add this line to your application's Gemfile:

gem 'wc.rb'

And then execute:

$ bundle

Or install it yourself as:

$ gem install wc.rb

Usage

To count number of lines in a file:

$ rwc -l file

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/piotrmurach/wc. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Copyright (c) 2017 Piotr Murach. See LICENSE for further details.