# File htree/leaf.rb, line 71 def Comment.new(content) content = content.gsub(/-(-+)/) { '-' + ' -' * $1.length }.sub(/-\z/, '- ') new! content end
# File htree/parse.rb, line 401 def Comment.parse(raw_string) unless /\A#{Pat::Comment_C}\z/ =~ raw_string raise HTree::Error, "cannot recognize as comment: #{raw_string.inspect}" end content = $1 result = Comment.new(content) result.raw_string = raw_string result end
Generated with the Darkfish Rdoc Generator 2.