Remove warnings on Ruby 2.1

上级 7252b43c
......@@ -228,7 +228,11 @@ def deep_symbolize_keys; to_hash.deep_symbolize_keys! end
def to_options!; self end
def select(*args, &block)
dup.tap {|hash| hash.select!(*args, &block)}
dup.tap { |hash| hash.select!(*args, &block)}
end
def reject(*args, &block)
dup.tap { |hash| hash.reject!(*args, &block)}
end
# Convert to a regular hash with string keys.
......
......@@ -28,6 +28,10 @@ def encode_with(coder)
coder.represent_seq '!omap', map { |k,v| { k => v } }
end
def reject(*args, &block)
dup.tap { |hash| hash.reject!(*args, &block)}
end
def nested_under_indifferent_access
self
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册