Sha256: ac3f70b1ec4803c3cda68178524c28f6ad2cba5bd6ded5738763bab3b550ee3c
Contents?: true
Size: 235 Bytes
Versions: 6
Compression:
Stored size: 235 Bytes
Contents
# frozen_string_literal: true module Openapi3Parser module ArraySentence refine ::Array do def sentence_join return join if count < 2 self[0..-2].join(", ") + " and " + self[-1] end end end end
Version data entries
6 entries across 6 versions & 1 rubygems