class HTMLComment
Class representing an HTML comment
Attributes
contents[RW]
Public Class Methods
new(text)
click to toggle source
Calls superclass method
HTMLToken.new
# File lib/openid/yadis/htmltokenizer.rb, line 211 def initialize(text) super(text) temp_arr = text.scan(/^<!--\s*(.*?)\s*-->$/m) if temp_arr[0].nil? raise HTMLTokenizerError, "Text passed to HTMLComment.initialize is not a comment" end @contents = temp_arr[0][0] end