Parent

Class/Module Index [+]

Quicksearch

YARD::Parser::Ruby::RipperParser

Internal parser class @since 0.5.6

Attributes

ast[R]
charno[R]
comments[R]
encoding_line[R]
file[R]
root[R]
shebang_line[R]
tokens[R]

Public Class Methods

new(source, filename, *args) click to toggle source
# 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 = []
  @map = {}
  @ns_charno = 0
  @list = []
  @charno = 0
  @groups = []
  @shebang_line = nil
  @encoding_line = nil
end

Public Instance Methods

enumerator() click to toggle source
# File lib/yard/parser/ruby/ruby_parser.rb, line 56
def enumerator
  ast.children
end
parse() click to toggle source
# File lib/yard/parser/ruby/ruby_parser.rb, line 47
def parse
  @ast = super
  @ast.full_source = @source
  @ast.file = @file
  freeze_tree
  insert_comments
  self
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.