summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.examples/html
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2010-03-19 19:00:49 -0700
committerJosh Stone <jistone@redhat.com>2010-03-19 19:02:34 -0700
commit1ae727577edea9441033fd0eff179b06e0a87348 (patch)
tree13c891b61537802eee4295ce868c7d480b9c0f61 /testsuite/systemtap.examples/html
parent824dd80202a13092d4cac5faa84d67982845dd50 (diff)
downloadsystemtap-steved-1ae727577edea9441033fd0eff179b06e0a87348.tar.gz
systemtap-steved-1ae727577edea9441033fd0eff179b06e0a87348.tar.xz
systemtap-steved-1ae727577edea9441033fd0eff179b06e0a87348.zip
Bump the sample indexes
Diffstat (limited to 'testsuite/systemtap.examples/html')
0 files changed, 0 insertions, 0 deletions
an class="hl str"> #puts "IN COMMENT CONSTRUCTOR; SECOND IS #{second.type}" super(second) if first.kind_of? String @string = first elsif first.kind_of? Comment @string = first.string end end def clone Comment.new self end # output:: # Where to write the string # indent:: # An integer. If -1, no indenting will be used; otherwise, the # indentation will be this number of spaces, and children will be # indented an additional amount. # transitive:: # Who knows? # ie_hack:: # Internet Explorer is the worst piece of crap to have ever been # written, with the possible exception of Windows itself. Since IE is # unable to parse proper XML, we have to provide a hack to generate XML # that IE's limited abilities can handle. This hack inserts a space # before the /> on empty tags. # def write( output, indent=-1, transitive=false, ie_hack=false ) indent( output, indent ) output << START output << @string output << STOP end alias :to_s :string ## # Compares this Comment to another; the contents of the comment are used # in the comparison. def <=>(other) other.to_s <=> @string end ## # Compares this Comment to another; the contents of the comment are used # in the comparison. def ==( other ) other.kind_of? Comment and (other <=> self) == 0 end def node_type :comment end end end #vim:ts=2 sw=2 noexpandtab: