Sha256: 873c6a27fcb0839b25862273a74a39324f9f6b23ba1db43e5e935154461a3a98
Contents?: true
Size: 143 Bytes
Versions: 3
Compression:
Stored size: 143 Bytes
Contents
# frozen_string_literal: true class Array def clamped(whitelist) self.select do |item| whitelist.include?(item) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
clamped-1.0.1 | lib/clamped/array.rb |
clamped-1.0.0 | lib/clamped/array.rb |
clamped-0.1.0 | lib/clamped/array.rb |