Method: YARD::Parser::Ruby::RipperParser#initialize

Defined in:
lib/yard/parser/ruby/ruby_parser.rb

#initialize(source, filename, *args) ⇒ RipperParser

Returns a new instance of RipperParser.

Since:

  • 0.5.6


29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# 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_flags = {}
  @heredoc_tokens = nil
  @heredoc_state = nil
  @map = {}
  @ns_charno = 0
  @list = []
  @charno = 0
  @groups = []
  @shebang_line = nil
  @encoding_line = nil
end