ri > Crass::Scanner

📦 Crass::Scanner < Object

📂 from /home/chedong/.local/share/rdoc

Similar to a StringScanner, but with extra functionality needed to tokenize CSS while preserving the original text.


🚀 Quick Reference

Use CaseCommandDescription
Initialize scannerCrass::Scanner.new(string)Create a new scanner with a string
Get current charactercurrentReturns the current character
Scan a patternscan(pattern)Attempt to match pattern from current position
Check end of stringeos?Returns true if at end of string
Get positionposReturns current position
Mark positionmarkSave current position for later rollback
Reset to markresetGo back to last marked position
Consume next n charsconsume(n)Advance by n characters
Get rest of stringconsume_restAdvance to end and return remaining string
Peek at next charspeek(n)Look ahead n characters without consuming
Scan until patternscan_until(pattern)Advance until pattern matches, return text

🔧 Class methods

🛠️ Instance methods

🏷️ Attributes

Crass::Scanner
📦 Crass::Scanner < Object 🚀 Quick Reference
🔧 Class methods 🛠️ Instance methods 🏷️ Attributes

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-31 14:37 @216.73.217.152
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format