Sha256: e26795703d738be4661b0fabf2b817baebd3cac0d6b4cf5dcc81b7cbd1852597
Contents?: true
Size: 902 Bytes
Versions: 36
Compression:
Stored size: 902 Bytes
Contents
# Copyright 2016 Ryan Moore # Contact: moorer@udel.edu # # This file is part of Iroki. # # Iroki is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Iroki is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Iroki. If not, see <http://www.gnu.org/licenses/>. module Iroki module CoreExt module Hash def duplicate_values? hash values = hash.values values.count != 1 && values.count != values.uniq.count end end end end
Version data entries
36 entries across 36 versions & 1 rubygems