dyoder-filebase 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/filebase/attributes.rb +1 -1
- metadata +1 -1
data/lib/filebase/attributes.rb
CHANGED
@@ -24,7 +24,7 @@ module Attributes
|
|
24
24
|
def set(name, val) ; attributes[name.to_s] = val ; end
|
25
25
|
|
26
26
|
def get(name)
|
27
|
-
( ( rval = attributes[name.to_s] ).is_a?( Hash ) and self.new( rval ) ) or rval
|
27
|
+
( ( rval = attributes[name.to_s] ).is_a?( Hash ) and attributes[name.to_s] = self.class.new( rval ) ) or rval
|
28
28
|
end
|
29
29
|
|
30
30
|
def to_h ; @attrs ; end
|