Class: YARD::Parser::Ruby::Legacy::RubyParser
- Defined in:
- lib/yard/parser/ruby/legacy/ruby_parser.rb
Overview
Legacy Ruby parser
Instance Method Summary collapse
- #encoding_line ⇒ Object
- #enumerator ⇒ Object
-
#initialize(source, filename) ⇒ RubyParser
constructor
A new instance of RubyParser.
- #parse ⇒ Object
- #shebang_line ⇒ 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/legacy/ruby_parser.rb', line 8 def initialize(source, filename) @source = source end |
Instance Method Details
#encoding_line ⇒ Object
24 |
# File 'lib/yard/parser/ruby/legacy/ruby_parser.rb', line 24 def encoding_line; @parse.encoding_line end |
#enumerator ⇒ Object
20 21 22 |
# File 'lib/yard/parser/ruby/legacy/ruby_parser.rb', line 20 def enumerator @parse end |
#parse ⇒ Object
12 13 14 |
# File 'lib/yard/parser/ruby/legacy/ruby_parser.rb', line 12 def parse @parse ||= StatementList.new(@source) end |
#shebang_line ⇒ Object
25 |
# File 'lib/yard/parser/ruby/legacy/ruby_parser.rb', line 25 def shebang_line; @parse.shebang_line end |