Class: YARD::Parser::Ruby::RubyParser
- Defined in:
- lib/yard/parser/ruby/ruby_parser.rb
Overview
Ruby 1.9 parser
Instance Method Summary collapse
- #enumerator ⇒ Object
-
#initialize(source, filename) ⇒ RubyParser
constructor
A new instance of RubyParser.
- #parse ⇒ Object
- #tokenize ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(source, filename) ⇒ RubyParser
Returns a new instance of RubyParser.
8 9 10 |
# File 'lib/yard/parser/ruby/ruby_parser.rb', line 8 def initialize(source, filename) @parser = RipperParser.new(source, filename) end |
Instance Method Details
#enumerator ⇒ Object
14 |
# File 'lib/yard/parser/ruby/ruby_parser.rb', line 14 def enumerator; @parser.enumerator end |
#parse ⇒ Object
12 |
# File 'lib/yard/parser/ruby/ruby_parser.rb', line 12 def parse; @parser.parse end |
#tokenize ⇒ Object
13 |
# File 'lib/yard/parser/ruby/ruby_parser.rb', line 13 def tokenize; @parser.tokens end |