Skip to content

Commit

Permalink
in Ruby things in general happen at runtime, no need to specify that
Browse files Browse the repository at this point in the history
  • Loading branch information
fxn committed May 19, 2010
1 parent 1c3d2a5 commit b9fcd8d
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -9,8 +9,9 @@ module ClassInheritableAttributes # :nodoc:
# their parents' attributes, instead of just a pointer to the same. This means that the child can add elements # 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 # 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. # 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. # The copies of inheritable parent attributes are added to subclasses when they are created, via the
# +inherited+ hook.
class Class # :nodoc: class Class # :nodoc:
def class_inheritable_reader(*syms) def class_inheritable_reader(*syms)
options = syms.extract_options! options = syms.extract_options!
Expand Down

0 comments on commit b9fcd8d

Please sign in to comment.