Class: ParsletCSS::Parser

Inherits:
Parslet::Parser
  • Object
show all
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

#charsetsObject



118
119
120
# File 'lib/parslet-css/parser.rb', line 118

def charsets
  Parslet::Atoms::Alternative.new(*@@charsets.map {|c| str(c)})
end