Method: RubyLex#initialize
- Defined in:
- lib/rdoc/parsers/parse_rb.rb
#initialize(content) ⇒ RubyLex
Returns a new instance of RubyLex.
447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 |
# File 'lib/rdoc/parsers/parse_rb.rb', line 447 def initialize(content) lex_init @reader = BufferedReader.new(content) @exp_line_no = @line_no = 1 @base_char_no = 0 @indent = 0 @ltype = nil @quoted = nil @lex_state = EXPR_BEG @space_seen = false @continue = false @line = "" @skip_space = false @read_auto_clean_up = false @exception_on_syntax_error = true end |