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

.attributesObject



9
10
11
# File 'lib/zwite/ext/class.rb', line 9

def self.attributes
  return @attributes
end

Instance Method Details

#attributesObject



12
13
14
# File 'lib/zwite/ext/class.rb', line 12

def attributes
  return self.class.attributes
end