Class: Textlint::Parser::RubyToTextlintAST

Inherits:
Ripper::Filter
  • Object
show all
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

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