Sha256: 5bac8d88c5d97698bfec0e4a5d8a873f451ce5b91690993ecbba46518850bf3c
Contents?: true
Size: 742 Bytes
Versions: 7
Compression:
Stored size: 742 Bytes
Contents
module Finitio module Support def compare_attrs(h1, h2, &bl) mine, yours = if bl [h1.map(&bl), h2.map(&bl)] elsif h1.is_a?(Hash) [h1.keys, h2.keys] else [h1, h2] end [ mine & yours, mine - yours, yours - mine ] end module_function :compare_attrs end # module Support end # module Finitio require_relative 'support/proc_with_code' require_relative 'support/metadata' require_relative 'support/attribute' require_relative 'support/constraint' require_relative 'support/contract' require_relative 'support/heading' require_relative 'support/dress_helper' require_relative 'support/type_factory' require_relative 'support/fetch_scope' require_relative 'support/compilation'
Version data entries
7 entries across 7 versions & 1 rubygems