Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/zwite/ext/class.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.attr_accessor(*vars) ⇒ Object
3 4 5 6 7 |
# File 'lib/zwite/ext/class.rb', line 3 def self.attr_accessor(*vars) @attributes ||= [] @attributes.concat vars super end |
.attributes ⇒ Object
9 10 11 |
# File 'lib/zwite/ext/class.rb', line 9 def self.attributes return @attributes end |
Instance Method Details
#attributes ⇒ Object
12 13 14 |
# File 'lib/zwite/ext/class.rb', line 12 def attributes return self.class.attributes end |