Class: Textlint::Parser::RubyToTextlintAST
- Inherits:
-
Ripper::Filter
- Object
- Ripper::Filter
- Textlint::Parser::RubyToTextlintAST
- Defined in:
- lib/textlint/parser.rb
Constant Summary collapse
- EVENT_RE =
/\Aon_(?<name>\w*)_(?:beg|end)\z/.freeze
- TSTRING_BEG_EVENTS =
%w[tstring qwords heredoc].freeze
Instance Method Summary collapse
-
#initialize(src) ⇒ RubyToTextlintAST
constructor
A new instance of RubyToTextlintAST.
Constructor Details
#initialize(src) ⇒ RubyToTextlintAST
13 14 15 16 17 18 19 |
# File 'lib/textlint/parser.rb', line 13 def initialize(src) super(src) @src = src @pos = 0 @lines = @src.lines @events = [] end |