Permalink
Browse files

ADDED: Storable#init

  • Loading branch information...
1 parent 7a76c78 commit 9df0fb33db79084d7ddadf1589516f0d60182595 @delano committed Dec 30, 2010
Showing with 5 additions and 0 deletions.
  1. +1 −0 CHANGES.txt
  2. +4 −0 lib/storable.rb
View
@@ -9,6 +9,7 @@ STORABLE, CHANGES
* FIXED: Added calls to postprocess in from_delimited
* CHANGE: Remove initialize completely
* ADDED: Storable#from_array (instance method)
+* ADDED: Storable#init (a default for Familia objects)
#### 0.8.4 (2010-12-23) #############################
View
@@ -197,6 +197,10 @@ def self.from_hash(from={})
end
end
+ def init *args
+ from_array *args
+ end
+
def from_array *from
(self.field_names || []).each_with_index do |n,index|
break if index >= from.size

0 comments on commit 9df0fb3

Please sign in to comment.