lib/aigu/importer.rb in aigu-0.2.1 vs lib/aigu/importer.rb in aigu-0.3
- old
+ new
@@ -1,12 +1,12 @@
module Aigu
class Importer
ARRAY_REGEX = /___KEY___(?<index>\d+)$/
- def initialize(input_file: nil, output_directory: nil, locale: nil)
- @input_file = input_file
- @output_directory = output_directory
- @locale = locale
+ def initialize(opts = {})
+ @input_file = opts[:input_file]
+ @output_directory = opts[:output_directory]
+ @locale = opts[:locale]
end
def process!
puts "Generating YAML files in `#{@output_directory}` based on Accent-generated `#{@input_file}` file"
puts '---'