Class: Module
- Inherits:
-
Object
- Object
- Module
- Defined in:
- lib/muddyit_fu.rb
Instance Method Summary collapse
Instance Method Details
#class_attr_accessor(attribute_name) ⇒ Object
40 41 42 43 44 45 46 47 48 49 |
# File 'lib/muddyit_fu.rb', line 40 def class_attr_accessor(attribute_name) class_eval <<-CODE def self.#{attribute_name} @@#{attribute_name} ||= nil end def self.#{attribute_name}=(value) @@#{attribute_name} = value end CODE end |