adieush 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/adieush.rb +4 -3
- metadata +1 -1
    
        data/lib/adieush.rb
    CHANGED
    
    | @@ -23,6 +23,7 @@ class Adieush | |
| 23 23 | 
             
              end
         | 
| 24 24 |  | 
| 25 25 | 
             
              def save_to_file(filename)
         | 
| 26 | 
            +
                @search_words = []
         | 
| 26 27 | 
             
                input_array = output_words(@storage_array)
         | 
| 27 28 | 
             
                input_string = ''
         | 
| 28 29 | 
             
                input_array.each do |word|
         | 
| @@ -34,6 +35,7 @@ class Adieush | |
| 34 35 | 
             
              end
         | 
| 35 36 |  | 
| 36 37 | 
             
              def save_to_zip(zip_name)
         | 
| 38 | 
            +
                @search_words = []
         | 
| 37 39 | 
             
                input_array = output_words(@storage_array)
         | 
| 38 40 | 
             
                input_string = ''
         | 
| 39 41 | 
             
                input_array.each do |word|
         | 
| @@ -108,6 +110,7 @@ class Adieush | |
| 108 110 | 
             
                    prev_node = current_node[c]
         | 
| 109 111 | 
             
                    i+=1
         | 
| 110 112 | 
             
                    if string_size == i
         | 
| 113 | 
            +
                      @search_words = []
         | 
| 111 114 | 
             
                      return output_words(current_node[c])
         | 
| 112 115 | 
             
                    end
         | 
| 113 116 | 
             
                  end
         | 
| @@ -122,8 +125,6 @@ class Adieush | |
| 122 125 | 
             
                    output_words(node[child])
         | 
| 123 126 | 
             
                  end
         | 
| 124 127 | 
             
                end
         | 
| 125 | 
            -
                 | 
| 126 | 
            -
                @search_words = []
         | 
| 127 | 
            -
                return output
         | 
| 128 | 
            +
                return @search_words
         | 
| 128 129 | 
             
              end
         | 
| 129 130 | 
             
            end
         |