class Aio::Parse::File

Attributes

file_open[RW]

Public Class Methods

new(file_path) click to toggle source
# File lib/aio/core/parse/file.rb, line 7
def initialize(file_path)
  self.file_open = File.open(file_path, "r+")
end

Public Instance Methods

each_line() { |line| ... } click to toggle source
# File lib/aio/core/parse/file.rb, line 11
def each_line
  file_open.each_line do |line|
    # 改进点,加入sefe_string方法
    yield line
  end
end