--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Creates a class-variable attr_accessor that can be accessed both on an instance and class level.
- !ruby/struct:SM::Flow::VERB 
  body: "  class MyClass\n    cattr_accessor :a\n  end\n\n  MyClass.a = 10\n  MyClass.a           #=&gt; 10\n  mc = MyClass.new\n  mc.a                #=&gt; 10\n"
- !ruby/struct:SM::Flow::P 
  body: "CREDIT: David Heinemeier Hansson"
full_name: Class#cattr_accessor
is_singleton: false
name: cattr_accessor
params: (*syms)
visibility: public
