Adds a .joined method to Array

DevOps By Rultor.com We recommend RubyMine

rake PDD status Gem Version Test Coverage Yard Docs Hits-of-Code License

Do you know to_sentence from Rails? This gem does exactly the same, but without Rails.

require 'joined'
puts ['orange', 'banana', 'pear'].joined

Prints:

orange, banana, and pear

That's it.

How to contribute

Read these guidelines. Make sure your build is green before you contribute your pull request. You will need to have Ruby 3.0+ and Bundler installed. Then:

bundle update
bundle exec rake

If it's clean and you don't see any error messages, submit your pull request.