class Object
Public Class Methods
attr_reader(*vars)
click to toggle source
Calls superclass method
# File lib/Object/object.rb, line 2 def self.attr_reader(*vars) @attributes ||= [] @attributes.concat vars super(*vars) end
attributes()
click to toggle source
# File lib/Object/object.rb, line 8 def self.attributes @attributes ||= [] @attributes end
Public Instance Methods
attributes()
click to toggle source
# File lib/Object/object.rb, line 13 def attributes self.class.attributes end