Class: PPZ::FileDocParser

Inherits:
AbstractDocParser show all
Defined in:
lib/doc/parser/file.rb

Instance Method Summary collapse

Methods inherited from AbstractDocParser

#get_model

Constructor Details

#initialize(path) ⇒ FileDocParser

Returns a new instance of FileDocParser.



2
3
4
5
6
7
8
9
# File 'lib/doc/parser/file.rb', line 2

def initialize path
  super()
  unless File.exist? path
    throw '文件不存在,可能是路径错了(需要绝对路径):' + path
  end
  @file = File.new path
  @end = false
end