lib/picky/backends/file/json.rb in picky-4.0.0pre5 vs lib/picky/backends/file/json.rb in picky-4.0.0pre6

- old
+ new

@@ -38,9 +38,15 @@ # def clear self.mapping.clear end + # Size of the index is equal to the mapping size. + # + def size + self.mapping.size + end + # Loads the mapping hash from json format. # def load self.mapping = mapping_file.load self