Sha256: 389cf54154bbbc27ce71850ae8c3679e36a5403c3cb76d3446bfafd8e600c572
Contents?: true
Size: 281 Bytes
Versions: 1
Compression:
Stored size: 281 Bytes
Contents
module JSend class HashUtils def self.remove_fields(hash, fields) hash.keep_if { |x| !fields.include? x } end def self.has_fields_different_from(hash, fields) not remove_fields(hash.clone, fields).empty? end end private_constant :HashUtils end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jsend-0.1.0 | lib/jsend/hash_utils.rb |