file_processor:Ruby中更强大的CSV文件处理器

时间:2021-05-02 21:00:22
【文件属性】:
文件名称:file_processor:Ruby中更强大的CSV文件处理器
文件大小:15KB
文件格式:ZIP
更新时间:2021-05-02 21:00:22
Ruby 文件处理器 更加强大的CSV文件处理器 安装 FileProcessor使用Ruby 1.9.3中引入的新CSV库,因此仅与此Ruby版本兼容。 将此行添加到您的应用程序的Gemfile中: gem 'file_processor' 然后执行: $ bundle 或将其自己安装为: $ gem install file_processor 用法 就像使用Ruby的CSV一样使用它: FileProcessor::CSV.open(filename, options) do |csv| csv.each do |row| # process row here end end # automatically closes the file FileProcessor :: CSV只是Ruby的CSV的包装,因此您可以像操作Ruby的CSV一样对其进行操作。 您也可
【文件预览】:
file_processor-master
----.travis.yml(93B)
----file_processor.gemspec(712B)
----Rakefile(115B)
----Gemfile(221B)
----Gemfile.lock(812B)
----.ruby-gemset(15B)
----.rspec(31B)
----spec()
--------file_processor()
--------support()
--------spec_helper.rb(384B)
----.ruby-version(6B)
----.gitignore(151B)
----lib()
--------file_processor()
--------file_processor.rb(210B)
----README.md(2KB)
----LICENSE.txt(1KB)

网友评论