Module: Hpricot::Node
- Includes:
- Hpricot
- Included in:
- Container, ETag, Leaf
- Defined in:
- lib/hpricot/modules.rb,
lib/hpricot/tag.rb
Overview
Constant Summary
Constant Summary
Constants included
from Hpricot
AttrCore, AttrEvents, AttrFocus, AttrHAlign, AttrI18n, AttrVAlign, Attrs, ElementContent, ElementExclusions, ElementInclusions, FORM_TAGS, NamedCharacters, NamedCharactersPattern, OmittedAttrName, SELF_CLOSING_TAGS
Instance Method Summary
(collapse)
Methods included from Hpricot
XML, build, css, make, parse, scan, uxs, xchr, xs
Instance Method Details
- (Object) altered!
33
34
35
|
# File 'lib/hpricot/tag.rb', line 33
def altered!
clear_raw
end
|
- (Object) clear_raw
24
|
# File 'lib/hpricot/tag.rb', line 24
def clear_raw; end
|
- (Object) html_quote(str)
21
22
23
|
# File 'lib/hpricot/tag.rb', line 21
def html_quote(str)
"\"" + str.gsub('"', '\\"') + "\""
end
|
- (Object) if_output(opts)
25
26
27
28
29
30
31
|
# File 'lib/hpricot/tag.rb', line 25
def if_output(opts)
if opts[:preserve] and not raw_string.nil?
raw_string
else
yield opts
end
end
|
- (Object) inspect_tree(depth = 0)
36
37
38
|
# File 'lib/hpricot/tag.rb', line 36
def inspect_tree(depth = 0)
%{#{" " * depth}} + self.class.name.split(/::/).last.downcase + "\n"
end
|
- (Object) pathname
32
|
# File 'lib/hpricot/tag.rb', line 32
def pathname; self.name end
|