Methods

CSSPool::SAC::Parser

Attributes

handler[RW]

Public Class Methods

new(handler = CSSPool::CSS::DocumentHandler.new) click to toggle source
# File lib/csspool/sac/parser.rb, line 6
def initialize handler = CSSPool::CSS::DocumentHandler.new
  @handler = handler
end

Public Instance Methods

parse(string) click to toggle source
# File lib/csspool/sac/parser.rb, line 10
def parse string
  scan_str string
  @handler.document
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.