Method: Module#synced_attr_accessor
- Defined in:
- lib/cinch/rubyext/module.rb
#synced_attr_accessor(attr) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Like attr_accessor, but for defining a synchronized attribute accessor
24 25 26 27 |
# File 'lib/cinch/rubyext/module.rb', line 24 def synced_attr_accessor(attr) synced_attr_reader(attr) attr_writer(attr) end |