提交 3a621e7b 编写于 作者: X Xavier Noria

removes merge conflicts

上级 89d825d0
...@@ -3,23 +3,12 @@ class Hash ...@@ -3,23 +3,12 @@ class Hash
# #
# options = options.reverse_merge(:size => 25, :velocity => 10) # options = options.reverse_merge(:size => 25, :velocity => 10)
# #
<<<<<<< HEAD
# The default <tt>:size</tt> and <tt>:velocity</tt> are only set if the +options+ hash passed in doesn't already
# have the respective key.
#
# As contrast, using Ruby's built in <tt>merge</tt> would require writing the following:
#
# def setup(options = {})
# options = { :size => 25, :velocity => 10 }.merge(options)
# end
=======
# is equivalent to # is equivalent to
# #
# options = {:size => 25, :velocity => 10}.merge(options) # options = {:size => 25, :velocity => 10}.merge(options)
# #
# This is particularly useful for initializing an options hash # This is particularly useful for initializing an options hash
# with default values. # with default values.
>>>>>>> 20768176292cbcb883ab152b4aa9ed8c664771cd
def reverse_merge(other_hash) def reverse_merge(other_hash)
other_hash.merge(self) other_hash.merge(self)
end end
......
...@@ -13,11 +13,7 @@ def blank? ...@@ -13,11 +13,7 @@ def blank?
respond_to?(:empty?) ? empty? : !self respond_to?(:empty?) ? empty? : !self
end end
<<<<<<< HEAD
# An object is present if it's not #blank?.
=======
# An object is present if it's not <tt>blank?</tt>. # An object is present if it's not <tt>blank?</tt>.
>>>>>>> 20768176292cbcb883ab152b4aa9ed8c664771cd
def present? def present?
!blank? !blank?
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册