lib/spread2rdf/attributes.rb in spread2rdf-0.0.1pre.1 vs lib/spread2rdf/attributes.rb in spread2rdf-0.0.1
- old
+ new
@@ -4,9 +4,10 @@
module ClassMethods
def attributes
if superclass.respond_to?(:attributes) and
(super_attributes = superclass.attributes).is_a? Hash
+ @attributes ||= {}
@attributes.reverse_merge(super_attributes)
else
@attributes
end
end