提交 f1220516 编写于 作者: A Alexey Gaziev
上级 92572241
......@@ -20,8 +20,7 @@ def superclass_delegating_accessor(name, options = {})
define_method("#{name}?") { !!send("#{name}") } if options[:instance_reader] != false
end
private
private
# Take the object being set and store it in a method. This gives us automatic
# inheritance behavior, without having to store the object in an instance
# variable and look up the superclass chain manually.
......@@ -38,5 +37,4 @@ def _superclass_delegating_accessor(name, options = {})
end
send("#{name}=", nil)
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册