Class: Aigu::Unmergeer
- Inherits:
-
Object
- Object
- Aigu::Unmergeer
- Defined in:
- lib/aigu/unmergeer.rb
Constant Summary collapse
- UNMERGE_REGEX =
/^@(?<file_name>\w+)@__(?<key>.+)$/
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Unmergeer
constructor
A new instance of Unmergeer.
- #process! ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ Unmergeer
Returns a new instance of Unmergeer.
5 6 7 8 |
# File 'lib/aigu/unmergeer.rb', line 5 def initialize(opts = {}) @output_directory = opts[:'output-directory'] @input_file = opts[:'input-file'] end |
Instance Method Details
#process! ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/aigu/unmergeer.rb', line 10 def process! puts "Unmerging Accent json file `#{@input_file}` to `#{@output_directory}` directory" puts '---' parse_json write_json_files puts '---' puts 'Done' end |