class YARD::Parser::Ruby::RubyParser

Ruby 1.9 parser @!attribute [r] #encoding_line @!attribute [r] #frozen_string_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 12
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 20
def encoding_line; @parser.encoding_line end
enumerator() click to toggle source
# File lib/yard/parser/ruby/ruby_parser.rb, line 18
def enumerator; @parser.enumerator end
frozen_string_line() click to toggle source
# File lib/yard/parser/ruby/ruby_parser.rb, line 21
def frozen_string_line; @parser.frozen_string_line end
parse() click to toggle source
# File lib/yard/parser/ruby/ruby_parser.rb, line 16
def parse; @parser.parse end
shebang_line() click to toggle source
# File lib/yard/parser/ruby/ruby_parser.rb, line 19
def shebang_line; @parser.shebang_line end
tokenize() click to toggle source
# File lib/yard/parser/ruby/ruby_parser.rb, line 17
def tokenize; @parser.tokens end