Class: OpenSocial::Base
- Inherits:
-
Object
- Object
- OpenSocial::Base
- Defined in:
- lib/opensocial/base.rb
Overview
Provides base functionality for the OpenSocial child classes.
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.
23 24 25 |
# File 'lib/opensocial/base.rb', line 23 def add_attr(name) self.class.class_eval "attr_accessor :#{name}" end |