提交 1c3d2a5a 编写于 作者: N Neeraj Singh

Updating the doc with the info that class_inheritable_accessor

copies properties to child at runtime
上级 695cabce
......@@ -9,6 +9,8 @@ module ClassInheritableAttributes # :nodoc:
# their parents' attributes, instead of just a pointer to the same. This means that the child can add elements
# to, for example, an array without those additions being shared with either their parent, siblings, or
# children, which is unlike the regular class-level attributes that are shared across the entire hierarchy.
# Note that subclasses are give a copy of parent attributes at runtime when subclass is created. After the
# subclass has been created any change in parent attributes will not be reflected in child.
class Class # :nodoc:
def class_inheritable_reader(*syms)
options = syms.extract_options!
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册