lib/zeamays/cob/defreezing.rb in zeamays-0.0.5 vs lib/zeamays/cob/defreezing.rb in zeamays-0.0.6
- old
+ new
@@ -11,9 +11,17 @@
unpacked_list << unpacked
end
unpacked_list
end
+ def defreeze(freezed)
+ cob = Cob.new
+ unpack(freezed).each do |row|
+ cob.grow!(row)
+ end
+ cob
+ end
+
private
def tail_pattern
'a*'
end
end