Skip to content

Commit

Permalink
correcting wrong example
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeraj Singh authored and fxn committed Aug 8, 2010
1 parent 4b18d3c commit d55491c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -29,7 +29,7 @@ module ClassInheritableAttributes # :nodoc:
# To opt out of the instance reader method, pass :instance_reader => false. # To opt out of the instance reader method, pass :instance_reader => false.
# #
# class Person # class Person
# cattr_accessor :hair_colors :instance_writer => false, :instance_reader => false # class_inheritable_accessor :hair_colors :instance_writer => false, :instance_reader => false
# end # end
# #
# Person.new.hair_colors = [:brown] # => NoMethodError # Person.new.hair_colors = [:brown] # => NoMethodError
Expand Down

0 comments on commit d55491c

Please sign in to comment.