class YARD::Parser::Ruby::Legacy::RubyParser
Public Class Methods
new(source, filename)
click to toggle source
# File lib/yard/parser/ruby/legacy/ruby_parser.rb, line 8 def initialize(source, filename) @source = source end
Public Instance Methods
encoding_line()
click to toggle source
# File lib/yard/parser/ruby/legacy/ruby_parser.rb, line 25 def encoding_line; @parse.encoding_line end
enumerator()
click to toggle source
# File lib/yard/parser/ruby/legacy/ruby_parser.rb, line 21 def enumerator @parse end
parse()
click to toggle source
# File lib/yard/parser/ruby/legacy/ruby_parser.rb, line 12 def parse @parse ||= StatementList.new(@source) self end
shebang_line()
click to toggle source
# File lib/yard/parser/ruby/legacy/ruby_parser.rb, line 26 def shebang_line; @parse.shebang_line end
tokenize()
click to toggle source
# File lib/yard/parser/ruby/legacy/ruby_parser.rb, line 17 def tokenize @tokenize ||= TokenList.new(@source) end