Class: Nokogiri::CSS::Parser
- Inherits:
-
GeneratedParser
- Object
- GeneratedParser
- Nokogiri::CSS::Parser
- Defined in:
- lib/nokogiri/css/parser.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Parser
constructor
A new instance of Parser.
- #next_token ⇒ Object
- #parse(string) ⇒ Object
Constructor Details
Class Method Details
.parse(string) ⇒ Object
5 6 7 |
# File 'lib/nokogiri/css/parser.rb', line 5 def parse string new.parse(string) end |
Instance Method Details
#next_token ⇒ Object
19 20 21 |
# File 'lib/nokogiri/css/parser.rb', line 19 def next_token @tokenizer.next_token end |
#parse(string) ⇒ Object
14 15 16 17 |
# File 'lib/nokogiri/css/parser.rb', line 14 def parse string @tokenizer.scan string do_parse end |