Permalink
Browse files

add + (plus) operator

  • Loading branch information...
1 parent 767361f commit 7416d78b56cf5a692c863f282033040b74e8f9df @ahoward committed Feb 14, 2013
Showing with 3 additions and 2 deletions.
  1. +2 −1 lib/map.rb
  2. +1 −1 map.gemspec
View
@@ -1,6 +1,6 @@
# -*- encoding : utf-8 -*-
class Map < Hash
- Version = '6.2.0' unless defined?(Version)
+ Version = '6.3.0' unless defined?(Version)
Load = Kernel.method(:load) unless defined?(Load)
class << Map
@@ -347,6 +347,7 @@ def update(*args)
def merge(*args)
copy.update(*args)
end
+ alias_method '+', 'merge'
def reverse_merge(hash)
map = copy
View
@@ -3,7 +3,7 @@
Gem::Specification::new do |spec|
spec.name = "map"
- spec.version = "6.2.0"
+ spec.version = "6.3.0"
spec.platform = Gem::Platform::RUBY
spec.summary = "map"
spec.description = "description: map kicks the ass"

0 comments on commit 7416d78

Please sign in to comment.