class YARD::Parser::Ruby::RubyParser
Ruby 1.9 parser @!attribute [r] #encoding_line @!attribute [r] #shebang_line @!attribute [r] enumerator
Public Class Methods
new(source, filename)
click to toggle source
# File lib/yard/parser/ruby/ruby_parser.rb, line 11 def initialize(source, filename) @parser = RipperParser.new(source, filename) end
Public Instance Methods
encoding_line()
click to toggle source
# File lib/yard/parser/ruby/ruby_parser.rb, line 19 def encoding_line; @parser.encoding_line end
enumerator()
click to toggle source
# File lib/yard/parser/ruby/ruby_parser.rb, line 17 def enumerator; @parser.enumerator end
parse()
click to toggle source
# File lib/yard/parser/ruby/ruby_parser.rb, line 15 def parse; @parser.parse end
shebang_line()
click to toggle source
# File lib/yard/parser/ruby/ruby_parser.rb, line 18 def shebang_line; @parser.shebang_line end
tokenize()
click to toggle source
# File lib/yard/parser/ruby/ruby_parser.rb, line 16 def tokenize; @parser.tokens end