Class_inheritable_accessor => class_attribute

I had code

class_inheritable_accessor :attrs, :instance_reader =>
false, :instance_writer => false
self.attrs = {}

now i want to get rid of class_inheritable_accessor, but
class_attribute only supports instance_writer, not instance_reader
options and i really don’t want instance reader. Is there any way to
do it?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs