Class: Aigu::Mergeer
- Inherits:
-
Object
- Object
- Aigu::Mergeer
- Defined in:
- lib/aigu/mergeer.rb
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Mergeer
constructor
A new instance of Mergeer.
- #process! ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ Mergeer
Returns a new instance of Mergeer.
3 4 5 6 |
# File 'lib/aigu/mergeer.rb', line 3 def initialize(opts = {}) @output_file = opts[:'output-file'] @input_directory = opts[:'input-directory'] end |
Instance Method Details
#process! ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/aigu/mergeer.rb', line 8 def process! puts "Generating flat Accent JSON file `#{@output_file}` merging json files in `#{@input_directory}` directory" puts '---' build_output write_json_file puts '---' puts 'Done' end |