Class: RSAC::DocumentHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/antisamy/csspool/rsac/sac/document_handler.rb

Direct Known Subclasses

AntiSamy::CssFilter, StyleSheet

Instance Method Summary collapse

Constructor Details

#initializeDocumentHandler

Returns a new instance of DocumentHandler.



4
5
# File 'lib/antisamy/csspool/rsac/sac/document_handler.rb', line 4

def initialize
end

Instance Method Details

#comment(text) ⇒ Object

Receive notification of a comment



16
17
# File 'lib/antisamy/csspool/rsac/sac/document_handler.rb', line 16

def comment(text)
end

#end_document(input_source) ⇒ Object

Receive notification of the end of a style sheet.



12
13
# File 'lib/antisamy/csspool/rsac/sac/document_handler.rb', line 12

def end_document(input_source)
end

#end_font_faceObject

Notification of the end of a font face statement.



51
52
# File 'lib/antisamy/csspool/rsac/sac/document_handler.rb', line 51

def end_font_face
end

#end_media(media) ⇒ Object

Notification of the end of a media statement



35
36
# File 'lib/antisamy/csspool/rsac/sac/document_handler.rb', line 35

def end_media(media)
end

#end_page(name = nil, pseudo_page = nil) ⇒ Object

Notification of the end of a page statement



43
44
# File 'lib/antisamy/csspool/rsac/sac/document_handler.rb', line 43

def end_page(name = nil, pseudo_page = nil)
end

#end_selector(selectors) ⇒ Object

Notification of the end of a rule statement.



59
60
# File 'lib/antisamy/csspool/rsac/sac/document_handler.rb', line 59

def end_selector(selectors)
end

#ignorable_at_rule(at_rule) ⇒ Object

Receive notification of an unknown at rule not supported by this parser.



20
21
# File 'lib/antisamy/csspool/rsac/sac/document_handler.rb', line 20

def ignorable_at_rule(at_rule)
end

#import_style(uri, media, default_namespace_uri = nil) ⇒ Object

Called on an import statement



27
28
# File 'lib/antisamy/csspool/rsac/sac/document_handler.rb', line 27

def import_style(uri, media, default_namespace_uri = nil)
end

#namespace_declaration(prefix, uri) ⇒ Object



23
24
# File 'lib/antisamy/csspool/rsac/sac/document_handler.rb', line 23

def namespace_declaration(prefix, uri)
end

#property(name, value, important) ⇒ Object

Notification of a declaration.



63
64
# File 'lib/antisamy/csspool/rsac/sac/document_handler.rb', line 63

def property(name, value, important)
end

#start_document(input_source) ⇒ Object

Receive notification of the beginning of a style sheet.



8
9
# File 'lib/antisamy/csspool/rsac/sac/document_handler.rb', line 8

def start_document(input_source)
end

#start_font_faceObject

Notification of the beginning of a font face statement.



47
48
# File 'lib/antisamy/csspool/rsac/sac/document_handler.rb', line 47

def start_font_face
end

#start_media(media) ⇒ Object

Notification of the start of a media statement



31
32
# File 'lib/antisamy/csspool/rsac/sac/document_handler.rb', line 31

def start_media(media)
end

#start_page(name = nil, pseudo_page = nil) ⇒ Object

Notification of the start of a page statement



39
40
# File 'lib/antisamy/csspool/rsac/sac/document_handler.rb', line 39

def start_page(name = nil, pseudo_page = nil)
end

#start_selector(selectors) ⇒ Object

Notification of the beginning of a rule statement.



55
56
# File 'lib/antisamy/csspool/rsac/sac/document_handler.rb', line 55

def start_selector(selectors)
end