Sha256: 4e1b03f75b2941db7a614390976ed397120bfa2b0a513e248a1369a80688a182

Contents?: true

Size: 169 Bytes

Versions: 4

Compression:

Stored size: 169 Bytes

Contents

module HashRefinements
  refine Hash do
    # Merges the caller into +other_hash+
    #
    def reverse_merge(other_hash)
      other_hash.merge(self)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cascade-rb-0.2.3 lib/cascade/helpers/hash.rb
cascade-rb-0.2.2 lib/cascade/helpers/hash.rb
cascade-rb-0.2.1 lib/cascade/helpers/hash.rb
cascade-rb-0.2.0 lib/cascade/helpers/hash.rb