Lines Matching refs:file_name
21 # def initialize top_level, file_name, content, options, stats
51 attr_reader :file_name
141 def self.can_parse file_name
142 parser = can_parse_by_name file_name
145 return if parser == RDoc::Parser::Simple and zip? file_name
151 # Returns a parser that can handle the extension for +file_name+. This does
154 def self.can_parse_by_name file_name
155 _, parser = RDoc::Parser.parsers.find { |regexp,| regexp =~ file_name }
158 ext_name = File.extname file_name
162 case check_modeline file_name
173 # Returns the file type from the modeline in +file_name+
175 def self.check_modeline file_name
176 line = open file_name do |io|
196 # Finds and instantiates the correct parser for the given +file_name+ and
199 def self.for top_level, file_name, content, options, stats
200 return if binary? file_name
205 parse_name = file_name
208 if file_name !~ /\.\w+$/ && content =~ %r{\A#!(.+)} then
221 parser.new top_level, file_name, content, options, stats
268 # Creates a new Parser storing +top_level+, +file_name+, +content+,
273 def initialize top_level, file_name, content, options, stats
278 @file_name = file_name
283 @preprocess = RDoc::Markup::PreProcess.new @file_name, @options.rdoc_include