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

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

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