make attributes available outside sof (iw as module funtion)
This commit is contained in:
parent
9d5f62eded
commit
28b4344ef9
@ -15,9 +15,11 @@ module Sof
|
||||
end
|
||||
|
||||
def attributes_for object
|
||||
Sof::Util.attributes(object)
|
||||
end
|
||||
def self.attributes( object )
|
||||
atts = object.instance_variables.collect{|i| i.to_s[1..-1].to_sym } # chop of @
|
||||
atts - Volotile.attributes(object.class)
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user