Sha256: 57aa65db7fd97c77d0eafd77b6ef79c575af90a1b25ca26d0994b09432fb7de1
Contents?: true
Size: 277 Bytes
Versions: 17
Compression:
Stored size: 277 Bytes
Contents
module Aio::Parse class File attr_accessor :file_open def initialize(file_path) self.file_open = File.open(file_path, "r+") end def each_line file_open.each_line do |line| # 改进点,加入sefe_string方法 yield line end end end
Version data entries
17 entries across 17 versions & 1 rubygems