Class: ParsletCSS::Parser
- Inherits:
-
Parslet::Parser
- Object
- Parslet::Parser
- ParsletCSS::Parser
- Defined in:
- lib/parslet-css/parser.rb
Constant Summary collapse
- @@charsets_file =
File.join(File.dirname(__FILE__), '..', '..', 'data', 'iana_character_sets.txt')
- @@charsets =
open(@@charsets_file).read.split
Instance Method Summary collapse
Instance Method Details
#charsets ⇒ Object
118 119 120 |
# File 'lib/parslet-css/parser.rb', line 118 def charsets Parslet::Atoms::Alternative.new(*@@charsets.map {|c| str(c)}) end |