Sha256: fb045509272107c5f27ddbc007c9c1b4e836fe9493bf770eed98af9e27d81b36

Contents?: true

Size: 263 Bytes

Versions: 3

Compression:

Stored size: 263 Bytes

Contents

# frozen_string_literal: true

Array.class_eval do
  # @return [String]
  def to_or_sentence
    to_sentence(two_words_connector: ' or ', last_word_connector: ', or ')
  end
end

Set.class_eval do
  extend Forwardable

  def_delegators :to_a, :to_or_sentence
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
to_or_sentence_extension-1.0.0 lib/to_or_sentence_extension.rb
to_or_sentence_extension-1.0.0.pre.rc.1 lib/to_or_sentence_extension.rb
to_or_sentence_extension-0.0.6 lib/to_or_sentence_extension.rb