What if every method were implemented by shelling out to the Unix system?
Let's see how far we can take Unix.
Add this line to your application's Gemfile:
gem 'runix'
And then execute:
$ bundle
Or install it yourself as:
$ gem install runix
Convert line endings:
File.unix2dos(path_to_file)
File.dos2unix(path_to_file)
Count the number of lines in a file without reading it all into memory:
File.number_of_lines(path_to_file)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request