Method: CloudDoor::FileList#load_list
- Defined in:
- lib/cloud_door/file_list.rb
#load_list ⇒ Object
29 30 31 32 33 34 35 36 37 38 |
# File 'lib/cloud_door/file_list.rb', line 29 def load_list list = [] if File.exist?(@list_file) marshal = File.open(@list_file).read list = Marshal.load(marshal) return false unless list.is_a?(Array) end @list = list true end |