Class: Shiba::Parsers::ShibaStringScanner
- Inherits:
-
StringScanner
- Object
- StringScanner
- Shiba::Parsers::ShibaStringScanner
- Defined in:
- lib/shiba/parsers/shiba_string_scanner.rb
Instance Method Summary collapse
Instance Method Details
#match_quoted_double_escape(quote) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/shiba/parsers/shiba_string_scanner.rb', line 6 def match_quoted_double_escape(quote) getch str = "" while ch = getch if ch == quote if peek(1) == quote str += ch str += getch else return str end else str += ch end end str end |