method

attr_accessor

v1_8_7_330 - Show latest stable - Class: Module
attr_accessor(...)
public

Equivalent to calling “attrsymbol, true” on each symbol in turn.

module Mod
  attr_accessor(:one, :two)
end
Mod.instance_methods.sort   #=> ["one", "one=", "two", "two="]