Sha256: 1825ea6536b578fe385d1e9206a4c083cee45ee59b21f5dd827873e58433ea24
Contents?: true
Size: 784 Bytes
Versions: 2
Compression:
Stored size: 784 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/proxy_resolver' require_relative 'support/compilation'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
finitio-0.12.0 | lib/finitio/support.rb |
finitio-0.11.4 | lib/finitio/support.rb |