lib/lhj/command/yapi.rb in lhj-tools-0.1.66 vs lib/lhj/command/yapi.rb in lhj-tools-0.1.67

- old
+ new

@@ -97,10 +97,10 @@ @sub_folder_name end def save_to_file(service_code) @model_names = [] - model_name = @config_model_names.frist + model_name = @config_model_names.first file_name = gen_model_name('') unless File.exist?(File.expand_path(sub_folder_name, '.')) FileUtils.mkdir_p(File.expand_path(sub_folder_name, '.')) end h_file = File.join('.', sub_folder_name, "#{file_name}.h")