Ripper
Internal parser class @since 0.5.6
# File lib/yard/parser/ruby/ruby_parser.rb, line 29 def initialize(source, filename, *args) super @last_ns_token = nil @file = filename @source = source @tokens = [] @comments = {} @comments_range = {} @comments_flags = {} @heredoc_tokens = nil @heredoc_state = nil @map = {} @ns_charno = 0 @list = [] @charno = 0 @shebang_line = nil @encoding_line = nil @file_encoding = nil end
# File lib/yard/parser/ruby/ruby_parser.rb, line 58 def enumerator ast.children end
# File lib/yard/parser/ruby/ruby_parser.rb, line 62 def file_encoding return nil unless defined?(::Encoding) return @file_encoding if @file_encoding return Encoding.default_internal unless @encoding_line if match = @encoding_line.match(SourceParser::ENCODING_LINE) @file_encoding = match.captures.last end end
Generated with the Darkfish Rdoc Generator 2.