提交 4bce8e3c 编写于 作者: E Emilio Tagua

No need to call super here. Use yield instead block.call

上级 b8c565fb
...@@ -41,9 +41,8 @@ def normalize(object) ...@@ -41,9 +41,8 @@ def normalize(object)
end end
end end
def initialize(*args, &block) def initialize(*args)
super(*args) yield(self) if block_given?
block.call(self) if block_given?
end end
def insert(index, *args, &block) def insert(index, *args, &block)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册