Class: Droonga::Catalog::Modifier
- Inherits:
-
Object
- Object
- Droonga::Catalog::Modifier
- Defined in:
- lib/droonga/catalog/modifier.rb
Instance Method Summary collapse
-
#initialize(source_catalog) ⇒ Modifier
constructor
A new instance of Modifier.
- #modify ⇒ Object
Constructor Details
Instance Method Details
#modify ⇒ Object
30 31 32 33 34 35 |
# File 'lib/droonga/catalog/modifier.rb', line 30 def modify SafeFileWriter.write(Path.catalog) do |output, file| yield(@generator, file) output.puts(JSON.pretty_generate(@generator.generate)) end end |