Class: OpenSocial::Base
- Inherits:
-
Object
- Object
- OpenSocial::Base
- Defined in:
- lib/opensocial/base.rb
Instance Method Summary collapse
-
#add_attr(name) ⇒ Object
Creates an attr_accessor for the specified variable name.
Instance Method Details
#add_attr(name) ⇒ Object
Creates an attr_accessor for the specified variable name.
33 34 35 |
# File 'lib/opensocial/base.rb', line 33 def add_attr(name) self.class.class_eval "attr_accessor :#{name}" end |