Class: Parser::Lexer

Inherits:
Object
  • Object
show all
Defined in:
lib/parser_extensions.rb

Overview

Monkeypatched lexer

Class Method Summary collapse

Class Method Details

.new(*arguments) ⇒ Lexer

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return new lexer



16
17
18
19
20
21
22
# File 'lib/parser_extensions.rb', line 16

def self.new(*arguments)
  super.tap do |instance|
    instance.instance_eval do
      @force_utf32 = false
    end
  end
end